mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user