mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[NTOS:PS] Check for rundown success in PsReferenceProcessFilePointer. CID 514553
This commit is contained in:
parent
2d69520595
commit
5c52ded05f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue