From a9e0dc23a4095e06d690da8b1a696d974a99a7f4 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Fri, 27 Aug 2010 22:18:10 +0000 Subject: [PATCH] [ntoskrnl/ps] - Acquire and Release RundownProtection on the Parent Pocess not the newly created Pcess when setting the SectionObject. svn path=/trunk/; revision=48631 --- reactos/ntoskrnl/ps/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ps/process.c b/reactos/ntoskrnl/ps/process.c index fea26c938c0..0c557c3699e 100644 --- a/reactos/ntoskrnl/ps/process.c +++ b/reactos/ntoskrnl/ps/process.c @@ -469,14 +469,14 @@ PspCreateProcess(OUT PHANDLE ProcessHandle, if (Parent != PsInitialSystemProcess) { /* It's not, so acquire the process rundown */ - if (ExAcquireRundownProtection(&Process->RundownProtect)) + if (ExAcquireRundownProtection(&Parent->RundownProtect)) { /* If the parent has a section, use it */ SectionObject = Parent->SectionObject; if (SectionObject) ObReferenceObject(SectionObject); /* Release process rundown */ - ExReleaseRundownProtection(&Process->RundownProtect); + ExReleaseRundownProtection(&Parent->RundownProtect); } /* If we don't have a section object */