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

This commit is contained in:
Thomas Faber 2018-01-26 13:45:53 +01:00
parent 2d69520595
commit 5c52ded05f
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

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;