mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:35:53 +00:00
Set the flag FO_DIRECT_DEVICE_OPEN after the call to IoCreateStreamFileObject in IoCreateFile.
svn path=/trunk/; revision=15451
This commit is contained in:
parent
f10f1f0548
commit
0eeb5caed9
1 changed files with 4 additions and 2 deletions
|
@ -877,6 +877,10 @@ IoCreateFile(OUT PHANDLE FileHandle,
|
|||
}
|
||||
/* FIXME: wt... */
|
||||
FileObject = IoCreateStreamFileObject(NULL, DeviceObject);
|
||||
/* HACK */
|
||||
FileObject->Flags |= FO_DIRECT_DEVICE_OPEN;
|
||||
DPRINT("%wZ\n", ObjectAttributes->ObjectName);
|
||||
|
||||
ObDereferenceObject (DeviceObject);
|
||||
}
|
||||
}
|
||||
|
@ -1145,8 +1149,6 @@ IoCreateStreamFileObject(PFILE_OBJECT FileObject,
|
|||
CreatedFileObject->DeviceObject = DeviceObject;
|
||||
CreatedFileObject->Vpb = DeviceObject->Vpb;
|
||||
CreatedFileObject->Type = IO_TYPE_FILE;
|
||||
/* HACK */
|
||||
CreatedFileObject->Flags |= FO_DIRECT_DEVICE_OPEN;
|
||||
CreatedFileObject->Flags |= FO_STREAM_FILE;
|
||||
|
||||
/* Initialize Lock and Event */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue