mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 10:46:58 +00:00
[NTOS:MM] Assert MmLocateMemoryAreaByAddress return value to satisfy Coverity. CID 701289
This commit is contained in:
parent
5c52ded05f
commit
d3a29816ce
1 changed files with 2 additions and 1 deletions
|
@ -4742,7 +4742,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
goto FailPath;
|
goto FailPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((AllocationType & MEM_RESET) == MEM_RESET)
|
if ((AllocationType & MEM_RESET) == MEM_RESET)
|
||||||
{
|
{
|
||||||
/// @todo HACK: pretend success
|
/// @todo HACK: pretend success
|
||||||
DPRINT("MEM_RESET not supported\n");
|
DPRINT("MEM_RESET not supported\n");
|
||||||
|
@ -4778,6 +4778,7 @@ 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 != NULL);
|
||||||
if (MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3)
|
if (MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3)
|
||||||
{
|
{
|
||||||
DPRINT1("Illegal commit of non-ARM3 section!\n");
|
DPRINT1("Illegal commit of non-ARM3 section!\n");
|
||||||
|
|
Loading…
Reference in a new issue