[NTOS:PS] Check for rundown success in PsReferenceProcessFilePointer. CID 514553

This commit is contained in:
Thomas Faber
2018-01-28 10:48:19 +01:00
parent 2d69520595
commit 5c52ded05f
+4 -1
View File
@@ -28,7 +28,10 @@ PsReferenceProcessFilePointer(IN PEPROCESS Process,
PAGED_CODE();
/* Lock the process */
ExAcquireRundownProtection(&Process->RundownProtect);
if (!ExAcquireRundownProtection(&Process->RundownProtect))
{
return STATUS_PROCESS_IS_TERMINATING;
}
/* Get the section */
Section = Process->SectionObject;