mirror of
https://github.com/reactos/reactos.git
synced 2024-06-24 06:51:47 +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
|
@ -3739,7 +3739,7 @@ MmCreateImageSection(PROS_SECTION_OBJECT *SectionObject,
|
||||||
return STATUS_INVALID_FILE_FOR_SECTION;
|
return STATUS_INVALID_FILE_FOR_SECTION;
|
||||||
|
|
||||||
#ifndef NEWCC
|
#ifndef NEWCC
|
||||||
if (FileObject->SectionObjectPointer->SharedCacheMap == NULL)
|
if (!CcIsFileCached(FileObject))
|
||||||
{
|
{
|
||||||
DPRINT1("Denying section creation due to missing cache initialization\n");
|
DPRINT1("Denying section creation due to missing cache initialization\n");
|
||||||
return STATUS_INVALID_FILE_FOR_SECTION;
|
return STATUS_INVALID_FILE_FOR_SECTION;
|
||||||
|
|
Loading…
Reference in a new issue