Update and rename SetLastNtStatus.c to SetLastNtStatusAlt.c

This commit is contained in:
vxunderground 2021-05-28 12:46:47 -05:00 committed by GitHub
parent 27e3e2193c
commit b3b44dbcf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,9 @@
#include <windows.h>
#include "TEB.h"
/*
DEFINITIONS FOR TEB MUST BE PRESENT
*/
PTEB GetTeb(VOID)
{
@ -10,7 +14,7 @@ PTEB GetTeb(VOID)
#endif
}
VOID SetLastNtStatus(NTSTATUS Status)
VOID SetLastNtStatusAlt(NTSTATUS Status)
{
PTEB Teb = (PTEB)GetTeb();
Teb->LastStatusValue = Status;
@ -21,7 +25,7 @@ INT main(VOID)
{
NTSTATUS Status = 1;
SetLastNtStatus(Status);
SetLastNtStatusAlt(Status);
return ERROR_SUCCESS;
}