mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[NTOS:PS] Fix NtQueryInformationProcess(ProcessImageInformation) (#8134)
Do not overwrite Status failure value.
Addendum to commit bf493b93a
(r59859).
This commit is contained in:
@@ -889,6 +889,9 @@ NtQueryInformationProcess(
|
||||
/* Set the length required and validate it */
|
||||
Length = sizeof(SECTION_IMAGE_INFORMATION);
|
||||
|
||||
/* Indicate success */
|
||||
Status = STATUS_SUCCESS;
|
||||
|
||||
/* Enter SEH to protect write */
|
||||
_SEH2_TRY
|
||||
{
|
||||
@@ -900,9 +903,6 @@ NtQueryInformationProcess(
|
||||
Status = _SEH2_GetExceptionCode();
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
/* Indicate success */
|
||||
Status = STATUS_SUCCESS;
|
||||
break;
|
||||
|
||||
case ProcessDebugObjectHandle:
|
||||
|
Reference in New Issue
Block a user