- 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
Status = PspLookupSystemDllEntryPoint("KiFastSystemCallRet",
(PVOID)&SharedUserData->
SystemCallReturn);
+ if (!NT_SUCCESS(Status)) return Status;
}
else
{
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;