api: fix Function and Prefix logging order
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
b0ebb6d0ad
commit
c581a9f6cd
@ -27,7 +27,7 @@ static inline _Post_equals_last_error_ DWORD
|
|||||||
LoggerLastError(_In_z_ const WCHAR *Function, _In_z_ const WCHAR *Prefix)
|
LoggerLastError(_In_z_ const WCHAR *Function, _In_z_ const WCHAR *Prefix)
|
||||||
{
|
{
|
||||||
DWORD LastError = GetLastError();
|
DWORD LastError = GetLastError();
|
||||||
LoggerError(Prefix, Function, LastError);
|
LoggerError(Function, Prefix, LastError);
|
||||||
SetLastError(LastError);
|
SetLastError(LastError);
|
||||||
return LastError;
|
return LastError;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user