* FO_STREAM_FILE is according to W32 documentation.
*/
CreatedFileObject->Flags |= FO_STREAM_FILE;
+#ifdef LIBCAPTIVE
+ /* We are fully single-threaded/single-processed;
+ * prevent at least IopDeleteFile()->...->IoIsOperationSynchronous() to return FALSE
+ */
+ CreatedFileObject->Flags |= FO_SYNCHRONOUS_IO;
+#endif /* LIBCAPTIVE */
+ CreatedFileObject->FileName.Length=0;
+ CreatedFileObject->FileName.MaximumLength=0;
+ CreatedFileObject->FileName.Buffer=NULL;
// shouldn't we initialize the lock event, and several other things here too?
KeInitializeEvent(&CreatedFileObject->Event, NotificationEvent, FALSE);