mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue