- Fix a strange bug where we were only setting SharedUserData->TestRetInstruction conditionally only if lookup failed - it should be set on success. Also, bail out if the lookups failed.

svn path=/trunk/; revision=48735
This commit is contained in:
Aleksey Bragin 2010-09-10 21:01:59 +00:00
parent dee985f9c6
commit 1f4771d41b

View file

@ -200,6 +200,7 @@ PspLookupKernelUserEntryPoints(VOID)
Status = PspLookupSystemDllEntryPoint("KiFastSystemCallRet",
(PVOID)&SharedUserData->
SystemCallReturn);
if (!NT_SUCCESS(Status)) return Status;
}
else
{
@ -207,10 +208,11 @@ PspLookupKernelUserEntryPoints(VOID)
Status = PspLookupSystemDllEntryPoint("KiIntSystemCall",
(PVOID)&SharedUserData->
SystemCall);
if (!NT_SUCCESS(Status)) return Status;
}
/* Set the test instruction */
if (!NT_SUCCESS(Status)) SharedUserData->TestRetInstruction = 0xC3;
SharedUserData->TestRetInstruction = 0xC3;
/* Return the status */
return Status;