--- trunk/reactos/ntoskrnl/io/file.c 2005-05-21 11:29:53 UTC (rev 15450)
+++ trunk/reactos/ntoskrnl/io/file.c 2005-05-21 12:08:46 UTC (rev 15451)
@@ -877,6 +877,10 @@
}
/* FIXME: wt... */
FileObject = IoCreateStreamFileObject(NULL, DeviceObject);
+ /* HACK */
+ FileObject->Flags |= FO_DIRECT_DEVICE_OPEN;
+ DPRINT("%wZ\n", ObjectAttributes->ObjectName);
+
ObDereferenceObject (DeviceObject);
}
}
@@ -1145,8 +1149,6 @@
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 */