mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
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:
parent
17b55d1d60
commit
9029590177
1 changed files with 30 additions and 35 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue