mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[NTOS:PS] Check for rundown success in PsReferenceProcessFilePointer. CID 514553
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user