mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 23:25:09 +00:00
[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. svn path=/trunk/; revision=60016
This commit is contained in:
parent
961f5fcef6
commit
0fdb692a1f
|
@ -4095,7 +4095,12 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
// Make sure this is an ARM3 section
|
// Make sure this is an ARM3 section
|
||||||
//
|
//
|
||||||
MemoryArea = MmLocateMemoryAreaByAddress(AddressSpace, (PVOID)PAGE_ROUND_DOWN(PBaseAddress));
|
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
|
// Is this a previously reserved section being committed? If so, enter the
|
||||||
// special section path
|
// special section path
|
||||||
|
|
Loading…
Reference in a new issue