mirror of
https://github.com/reactos/reactos.git
synced 2024-12-04 17:03:30 +08:00
[NTOSKRNL] In MmCreateImageSection, properly check whether cache was initialized
This fixes a crash that occurs if nul is typed in cmd.exe
This commit is contained in:
parent
8bc9935fcb
commit
d29e216f99
@ -3739,7 +3739,7 @@ MmCreateImageSection(PROS_SECTION_OBJECT *SectionObject,
|
||||
return STATUS_INVALID_FILE_FOR_SECTION;
|
||||
|
||||
#ifndef NEWCC
|
||||
if (FileObject->SectionObjectPointer->SharedCacheMap == NULL)
|
||||
if (!CcIsFileCached(FileObject))
|
||||
{
|
||||
DPRINT1("Denying section creation due to missing cache initialization\n");
|
||||
return STATUS_INVALID_FILE_FOR_SECTION;
|
||||
|
Loading…
Reference in New Issue
Block a user