Author: pschweitzer Date: Sun Nov 20 20:58:22 2016 New Revision: 73328
URL: http://svn.reactos.org/svn/reactos?rev=73328&view=rev Log: [KMTESTS:MM] This tests doesn't fail anylonger on ReactOS (not sure which rev fixed it)
ROSTESTS-108
Modified: trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c
Modified: trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_mm/ZwCreateSe... ============================================================================== --- trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c [iso-8859-1] (original) +++ trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c [iso-8859-1] Sun Nov 20 20:58:22 2016 @@ -455,14 +455,10 @@ { NTSTATUS Status; HANDLE Section = NULL; -#ifdef ROSTESTS_108_FIXED PFILE_OBJECT FileObject; -#endif /* ROSTESTS_108_FIXED */ LARGE_INTEGER Length; Length.QuadPart = TestStringSize;
-/* FIXME: Null pointer dereference. See ROSTESTS-108 */ -#ifdef ROSTESTS_108_FIXED //mimic lack of section support for a particular file as well. Status = ObReferenceObjectByHandle(FileHandle, STANDARD_RIGHTS_ALL, *IoFileObjectType, KernelMode, (PVOID *)&FileObject, NULL); if (!skip(NT_SUCCESS(Status), "Cannot reference object by handle\n")) @@ -474,7 +470,7 @@ FileObject->SectionObjectPointer = Pointers; ObDereferenceObject(FileObject); } -#endif /* ROSTESTS_108_FIXED */ + Length.QuadPart = TestStringSize; CREATE_SECTION(Section, (SECTION_ALL_ACCESS), NULL, Length, PAGE_READONLY, SEC_COMMIT, FileHandle, STATUS_SUCCESS, NO_HANDLE_CLOSE); CheckObject(Section, 2, 1);