mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 13:25:57 +00:00
- Removed some wrong calls to MmUnlockAddressSpace.
- Dereference the section object after creating the section. svn path=/trunk/; revision=13378
This commit is contained in:
parent
0a44e5f7e6
commit
a11189968c
1 changed files with 1 additions and 5 deletions
|
@ -954,7 +954,6 @@ exitdereferenceobjects:
|
|||
MmUnlockAddressSpace(&Process->AddressSpace);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
MmUnlockAddressSpace(&Process->AddressSpace); /* FIXME ? */
|
||||
DPRINT1("Failed to create shared data page\n");
|
||||
ObDereferenceObject(Process);
|
||||
goto exitdereferenceobjects;
|
||||
|
@ -972,7 +971,6 @@ exitdereferenceobjects:
|
|||
&hProcess);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
MmUnlockAddressSpace(&Process->AddressSpace); /* FIXME ? */
|
||||
DPRINT1("Failed to create a handle for the process\n");
|
||||
ObDereferenceObject(Process);
|
||||
goto exitdereferenceobjects;
|
||||
|
@ -987,7 +985,6 @@ exitdereferenceobjects:
|
|||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DbgPrint("LdrpMapSystemDll failed (Status %x)\n", Status);
|
||||
MmUnlockAddressSpace(&Process->AddressSpace); /* FIXME ? */
|
||||
ObDereferenceObject(Process);
|
||||
goto exitdereferenceobjects;
|
||||
}
|
||||
|
@ -1009,11 +1006,10 @@ exitdereferenceobjects:
|
|||
0,
|
||||
MEM_COMMIT,
|
||||
PAGE_READWRITE);
|
||||
|
||||
ObDereferenceObject(SectionObject);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DbgPrint("Failed to map the process section (Status %x)\n", Status);
|
||||
MmUnlockAddressSpace(&Process->AddressSpace); /* FIXME ? */
|
||||
ObDereferenceObject(Process);
|
||||
goto exitdereferenceobjects;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue