[NTOS:PS] Fix NtQueryInformationProcess(ProcessImageInformation) (#8134)

Do not overwrite Status failure value.

Addendum to commit bf493b93a (r59859).
This commit is contained in:
Serge Gautherie
2025-06-19 12:23:32 +02:00
committed by GitHub
parent 44da696ad7
commit 4f7e9dc2ed

View File

@@ -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: