mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[NTOSKRNL]
If the cache wasn't initialized by the FSD serving the image, don't allow section creation to avoid later (dramatic) failure in CC. Based on a patch by Sylvain Deverre. CORE-10038 #comment Modified patch committed in r70756 svn path=/trunk/; revision=70756
This commit is contained in:
parent
eacfcdff7c
commit
515de755e6
1 changed files with 8 additions and 0 deletions
|
@ -3777,6 +3777,14 @@ MmCreateImageSection(PROS_SECTION_OBJECT *SectionObject,
|
|||
if (FileObject == NULL)
|
||||
return STATUS_INVALID_FILE_FOR_SECTION;
|
||||
|
||||
#ifndef NEWCC
|
||||
if (FileObject->SectionObjectPointer->SharedCacheMap == NULL)
|
||||
{
|
||||
DPRINT1("Denying section creation due to missing cache initialization\n");
|
||||
return STATUS_INVALID_FILE_FOR_SECTION;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Create the section
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue