From c581a9f6cddd4c660e99e5bcad5af8aadcc0ae6f Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 6 Nov 2020 16:53:42 +0100 Subject: [PATCH] api: fix Function and Prefix logging order Signed-off-by: Simon Rozman --- api/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logger.h b/api/logger.h index 7991996..6611528 100644 --- a/api/logger.h +++ b/api/logger.h @@ -27,7 +27,7 @@ static inline _Post_equals_last_error_ DWORD LoggerLastError(_In_z_ const WCHAR *Function, _In_z_ const WCHAR *Prefix) { DWORD LastError = GetLastError(); - LoggerError(Prefix, Function, LastError); + LoggerError(Function, Prefix, LastError); SetLastError(LastError); return LastError; }