[NTOSKRNL]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 20 Nov 2016 20:55:17 +0000 (20:55 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 20 Nov 2016 20:55:17 +0000 (20:55 +0000)
When we're really not able to init cache for creating a file section, return the appropriate status code

svn path=/trunk/; revision=73327

reactos/ntoskrnl/mm/section.c

index d50630d..7fc8c48 100644 (file)
@@ -3039,7 +3039,7 @@ MmCreateDataFileSection(PROS_SECTION_OBJECT *SectionObject,
             /* FIXME: handle this situation */
             ObDereferenceObject(Section);
             ObDereferenceObject(FileObject);
             /* FIXME: handle this situation */
             ObDereferenceObject(Section);
             ObDereferenceObject(FileObject);
-            return STATUS_INVALID_PARAMETER;
+            return STATUS_INVALID_FILE_FOR_SECTION;
         }
     }
 
         }
     }