diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index 6b9086b5976..b1d018a09c5 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -363,7 +363,9 @@ l_ReadHeaderFromFile: switch(piohOptHeader->Magic) { case IMAGE_NT_OPTIONAL_HDR32_MAGIC: +#ifdef _WIN64 case IMAGE_NT_OPTIONAL_HDR64_MAGIC: +#endif // _WIN64 break; default: @@ -4611,13 +4613,6 @@ MmMapViewOfSection(IN PVOID SectionObject, return STATUS_SECTION_PROTECTION; } - if (ViewSize == NULL) - { - /* Following this pointer would lead to us to the dark side */ - /* What to do? Bugcheck? Return status? Do the mambo? */ - KeBugCheck(MEMORY_MANAGEMENT); - } - if (SectionOffset == NULL) { ViewOffset = 0;