Author: tfaber
Date: Mon Jun 22 20:47:56 2015
New Revision: 68243
URL:
http://svn.reactos.org/svn/reactos?rev=68243&view=rev
Log:
[NTOS:MM]
- Print some debug information before asserting in MiRosUnmapViewOfSection.
CORE-9865
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Mon Jun 22 20:47:56 2015
@@ -4232,14 +4232,24 @@
((char*)ImageBaseAddress +
(ULONG_PTR)SectionSegments[i].Image.VirtualAddress);
Status = MmUnmapViewOfSegment(AddressSpace, SBaseAddress);
- NT_ASSERT(NT_SUCCESS(Status));
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("MmUnmapViewOfSegment failed for %p (Process %p) with
%lx\n",
+ SBaseAddress, Process, Status);
+ NT_ASSERT(NT_SUCCESS(Status));
+ }
}
}
}
else
{
Status = MmUnmapViewOfSegment(AddressSpace, BaseAddress);
- NT_ASSERT(NT_SUCCESS(Status));
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("MmUnmapViewOfSegment failed for %p (Process %p) with
%lx\n",
+ BaseAddress, Process, Status);
+ NT_ASSERT(NT_SUCCESS(Status));
+ }
}
MmUnlockAddressSpace(AddressSpace);