Try always to open a file as named object first.

This is necessary for the redirection to NUL which is used by the new build system.

svn path=/trunk/; revision=15699
This commit is contained in:
Hartmut Birr 2005-05-31 14:56:55 +00:00
parent 17b55d1d60
commit 9029590177

View file

@ -844,10 +844,6 @@ IoCreateFile(OUT PHANDLE FileHandle,
DPRINT1("FIXME: IO_CHECK_CREATE_PARAMETERS not yet supported!\n");
}
if (CreateDisposition == FILE_OPEN ||
CreateDisposition == FILE_OPEN_IF)
{
Status = ObOpenObjectByName(ObjectAttributes,
NULL,
NULL,
@ -882,7 +878,6 @@ IoCreateFile(OUT PHANDLE FileHandle,
ObDereferenceObject (DeviceObject);
}
}
if (FileObject == NULL)