mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
Revert most of IoCreateStreamFileObject... it's wrong but needs to be wrong for now.
svn path=/trunk/; revision=15195
This commit is contained in:
parent
dfcf0aade2
commit
de8ae0fbd2
1 changed files with 13 additions and 7 deletions
|
@ -1031,11 +1031,16 @@ IoCreateStreamFileObject(PFILE_OBJECT FileObject,
|
|||
if (FileObject) DeviceObject = FileObject->DeviceObject;
|
||||
DPRINT("DeviceObject %x\n", DeviceObject);
|
||||
|
||||
/* HACK */
|
||||
DeviceObject = IoGetAttachedDevice(DeviceObject);
|
||||
|
||||
/* Set File Object Data */
|
||||
CreatedFileObject->DeviceObject = DeviceObject;
|
||||
CreatedFileObject->Vpb = DeviceObject->Vpb;
|
||||
CreatedFileObject->Type = IO_TYPE_FILE;
|
||||
CreatedFileObject->Flags = FO_STREAM_FILE;
|
||||
/* HACK */
|
||||
CreatedFileObject->Flags |= FO_DIRECT_DEVICE_OPEN;
|
||||
//CreatedFileObject->Flags = FO_STREAM_FILE;
|
||||
|
||||
/* Initialize Lock and Event */
|
||||
KeInitializeEvent(&CreatedFileObject->Event, NotificationEvent, FALSE);
|
||||
|
@ -1057,6 +1062,7 @@ IoCreateStreamFileObjectEx(IN PFILE_OBJECT FileObject OPTIONAL,
|
|||
UNIMPLEMENTED;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue