mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:22:57 +00:00
[ntoskrnl/ps]
- Acquire and Release RundownProtection on the Parent Pocess not the newly created Pcess when setting the SectionObject. svn path=/trunk/; revision=48631
This commit is contained in:
parent
3a325683bc
commit
a9e0dc23a4
1 changed files with 2 additions and 2 deletions
|
@ -469,14 +469,14 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
|
||||||
if (Parent != PsInitialSystemProcess)
|
if (Parent != PsInitialSystemProcess)
|
||||||
{
|
{
|
||||||
/* It's not, so acquire the process rundown */
|
/* It's not, so acquire the process rundown */
|
||||||
if (ExAcquireRundownProtection(&Process->RundownProtect))
|
if (ExAcquireRundownProtection(&Parent->RundownProtect))
|
||||||
{
|
{
|
||||||
/* If the parent has a section, use it */
|
/* If the parent has a section, use it */
|
||||||
SectionObject = Parent->SectionObject;
|
SectionObject = Parent->SectionObject;
|
||||||
if (SectionObject) ObReferenceObject(SectionObject);
|
if (SectionObject) ObReferenceObject(SectionObject);
|
||||||
|
|
||||||
/* Release process rundown */
|
/* Release process rundown */
|
||||||
ExReleaseRundownProtection(&Process->RundownProtect);
|
ExReleaseRundownProtection(&Parent->RundownProtect);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we don't have a section object */
|
/* If we don't have a section object */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue