mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 06:28:34 +00:00
[NTOS]
- 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:
parent
dee985f9c6
commit
1f4771d41b
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue