Update and rename GetLastError.c to GetLastErrorAlt.c
Este commit está contenido en:
padre
182b679a4a
commit
92cd28d603
|
@ -1,5 +1,8 @@
|
|||
#include <windows.h>
|
||||
#include "TEB.h"
|
||||
|
||||
/*
|
||||
DEFINITIONS FOR TEB MUST BE PRESENT
|
||||
*/
|
||||
|
||||
PTEB GetTeb(VOID)
|
||||
{
|
||||
|
@ -10,7 +13,7 @@ PTEB GetTeb(VOID)
|
|||
#endif
|
||||
}
|
||||
|
||||
DWORD GetLastErrorEx(VOID)
|
||||
DWORD GetLastErrorAlt(VOID)
|
||||
{
|
||||
PTEB Teb = (PTEB)GetTeb();
|
||||
return Teb->LastErrorValue;
|
||||
|
@ -20,7 +23,7 @@ INT main(VOID)
|
|||
{
|
||||
DWORD dwError;
|
||||
|
||||
dwError = GetLastErrorEx();
|
||||
dwError = GetLastErrorAlt();
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
Cargando…
Referencia en una nueva incidencia