mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 16:12:04 +00:00
[NTOS:PS] Check for rundown success in PsReferenceProcessFilePointer. CID 514553
This commit is contained in:
parent
2d69520595
commit
5c52ded05f
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,10 @@ PsReferenceProcessFilePointer(IN PEPROCESS Process,
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
/* Lock the process */
|
/* Lock the process */
|
||||||
ExAcquireRundownProtection(&Process->RundownProtect);
|
if (!ExAcquireRundownProtection(&Process->RundownProtect))
|
||||||
|
{
|
||||||
|
return STATUS_PROCESS_IS_TERMINATING;
|
||||||
|
}
|
||||||
|
|
||||||
/* Get the section */
|
/* Get the section */
|
||||||
Section = Process->SectionObject;
|
Section = Process->SectionObject;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue