Author: akhaldi
Date: Tue Sep 10 21:57:52 2013
New Revision: 60016
URL:
http://svn.reactos.org/svn/reactos?rev=60016&view=rev
Log:
[NTOSKRNL]
* Return the proper status when we attempt to illegally commit non-ARM3 section. We hit
this assert with some kernel32 winetests (mainly loader and virtual). Brought to you by
Alex Ionescu.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/virtual.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] Tue Sep 10 21:57:52 2013
@@ -4095,7 +4095,12 @@
// Make sure this is an ARM3 section
//
MemoryArea = MmLocateMemoryAreaByAddress(AddressSpace,
(PVOID)PAGE_ROUND_DOWN(PBaseAddress));
- ASSERT(MemoryArea->Type == MEMORY_AREA_OWNED_BY_ARM3);
+ if (MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3)
+ {
+ DPRINT1("Illegal commit of non-ARM3 section!\n");
+ Status = STATUS_ALREADY_COMMITTED;
+ goto FailPath;
+ }
// Is this a previously reserved section being committed? If so, enter the
// special section path