api: fix Function and Prefix logging order

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-11-06 16:53:42 +01:00 committed by Jason A. Donenfeld
parent b0ebb6d0ad
commit c581a9f6cd

View File

@ -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;
}