mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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);
|
MmUnlockAddressSpace(&Process->AddressSpace);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
MmUnlockAddressSpace(&Process->AddressSpace); /* FIXME ? */
|
|
||||||
DPRINT1("Failed to create shared data page\n");
|
DPRINT1("Failed to create shared data page\n");
|
||||||
ObDereferenceObject(Process);
|
ObDereferenceObject(Process);
|
||||||
goto exitdereferenceobjects;
|
goto exitdereferenceobjects;
|
||||||
|
@ -972,7 +971,6 @@ exitdereferenceobjects:
|
||||||
&hProcess);
|
&hProcess);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
MmUnlockAddressSpace(&Process->AddressSpace); /* FIXME ? */
|
|
||||||
DPRINT1("Failed to create a handle for the process\n");
|
DPRINT1("Failed to create a handle for the process\n");
|
||||||
ObDereferenceObject(Process);
|
ObDereferenceObject(Process);
|
||||||
goto exitdereferenceobjects;
|
goto exitdereferenceobjects;
|
||||||
|
@ -987,7 +985,6 @@ exitdereferenceobjects:
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DbgPrint("LdrpMapSystemDll failed (Status %x)\n", Status);
|
DbgPrint("LdrpMapSystemDll failed (Status %x)\n", Status);
|
||||||
MmUnlockAddressSpace(&Process->AddressSpace); /* FIXME ? */
|
|
||||||
ObDereferenceObject(Process);
|
ObDereferenceObject(Process);
|
||||||
goto exitdereferenceobjects;
|
goto exitdereferenceobjects;
|
||||||
}
|
}
|
||||||
|
@ -1009,11 +1006,10 @@ exitdereferenceobjects:
|
||||||
0,
|
0,
|
||||||
MEM_COMMIT,
|
MEM_COMMIT,
|
||||||
PAGE_READWRITE);
|
PAGE_READWRITE);
|
||||||
|
ObDereferenceObject(SectionObject);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DbgPrint("Failed to map the process section (Status %x)\n", Status);
|
DbgPrint("Failed to map the process section (Status %x)\n", Status);
|
||||||
MmUnlockAddressSpace(&Process->AddressSpace); /* FIXME ? */
|
|
||||||
ObDereferenceObject(Process);
|
ObDereferenceObject(Process);
|
||||||
goto exitdereferenceobjects;
|
goto exitdereferenceobjects;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue