Update and rename GetLastError.c to GetLastErrorAlt.c

Este commit está contenido en:
vxunderground 2021-05-28 12:39:26 -05:00 cometido por GitHub
padre 182b679a4a
commit 92cd28d603
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 4AEE18F83AFDEB23

Ver fichero

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