+ if (SectionObject && SectionObject != InvalidPointer)
+ ObDereferenceObject(SectionObject);
+
+ SectionObject = InvalidPointer;
+ MaximumSize.QuadPart = 0;
+ StartSeh()
+ Status = MmCreateSection(&SectionObject, 0, NULL, &MaximumSize, PAGE_READONLY, SEC_IMAGE, NULL, NULL);
+ EndSeh(STATUS_SUCCESS);
+ ok_eq_hex(Status, STATUS_INVALID_FILE_FOR_SECTION);
+ ok_eq_longlong(MaximumSize.QuadPart, 0LL);
+ ok_eq_pointer(SectionObject, InvalidPointer);
+
+ if (SectionObject && SectionObject != InvalidPointer)
+ ObDereferenceObject(SectionObject);
+