Fixed duplicate call to NtCurrentTeb

This commit is contained in:
Armin Novak 2020-01-22 15:17:03 +01:00 committed by akallabeth
parent b500800104
commit 4a9efacc65

View File

@ -44,7 +44,7 @@ DWORD GetLastError(VOID)
PTEB pt = NtCurrentTeb();
if (pt)
{
return NtCurrentTeb()->LastErrorValue;
return pt->LastErrorValue;
}
return ERROR_OUTOFMEMORY;
}