[ros-diffs] [cwittich] 30638: don't assign DO_DIRECT_IO directly to DeviceObject->Flags set DRIVER_DISPATCH where needed

cwittich at svn.reactos.org cwittich at svn.reactos.org
Wed Nov 21 18:11:49 CET 2007


Author: cwittich
Date: Wed Nov 21 20:11:49 2007
New Revision: 30638

URL: http://svn.reactos.org/svn/reactos?rev=30638&view=rev
Log:
don't assign DO_DIRECT_IO directly to DeviceObject->Flags
set DRIVER_DISPATCH where needed

Modified:
    trunk/reactos/drivers/filesystems/msfs/msfs.c
    trunk/reactos/drivers/filesystems/msfs/msfs.h

Modified: trunk/reactos/drivers/filesystems/msfs/msfs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/msfs.c?rev=30638&r1=30637&r2=30638&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/msfs.c (original)
+++ trunk/reactos/drivers/filesystems/msfs/msfs.c Wed Nov 21 20:11:49 2007
@@ -67,7 +67,7 @@
     }
 
     /* initialize the device object */
-    DeviceObject->Flags = DO_DIRECT_IO;
+    DeviceObject->Flags |= DO_DIRECT_IO;
 
     /* initialize device extension */
     DeviceExtension = DeviceObject->DeviceExtension;

Modified: trunk/reactos/drivers/filesystems/msfs/msfs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/msfs.h?rev=30638&r1=30637&r2=30638&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/msfs.h (original)
+++ trunk/reactos/drivers/filesystems/msfs/msfs.h Wed Nov 21 20:11:49 2007
@@ -76,16 +76,28 @@
 
 #define KeUnlockMutex(x) KeReleaseMutex(x, FALSE);
 
+DRIVER_DISPATCH MsfsCreate;
 NTSTATUS DEFAULTAPI MsfsCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp);
+
+DRIVER_DISPATCH MsfsCreateMailslot;
 NTSTATUS DEFAULTAPI MsfsCreateMailslot(PDEVICE_OBJECT DeviceObject, PIRP Irp);
+
+DRIVER_DISPATCH MsfsClose;
 NTSTATUS DEFAULTAPI MsfsClose(PDEVICE_OBJECT DeviceObject, PIRP Irp);
 
+DRIVER_DISPATCH MsfsQueryInformation;
 NTSTATUS DEFAULTAPI MsfsQueryInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
+
+DRIVER_DISPATCH MsfsSetInformation;
 NTSTATUS DEFAULTAPI MsfsSetInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
 
+DRIVER_DISPATCH MsfsRead;
 NTSTATUS DEFAULTAPI MsfsRead(PDEVICE_OBJECT DeviceObject, PIRP Irp);
+
+DRIVER_DISPATCH MsfsWrite;
 NTSTATUS DEFAULTAPI MsfsWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp);
 
+DRIVER_DISPATCH MsfsFileSystemControl;
 NTSTATUS DEFAULTAPI MsfsFileSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp);
 
 NTSTATUS NTAPI




More information about the Ros-diffs mailing list