don't assign DO_DIRECT_IO directly to DeviceObject->Flags

set DRIVER_DISPATCH where needed

svn path=/trunk/; revision=30638
This commit is contained in:
Christoph von Wittich 2007-11-21 17:11:49 +00:00
parent e7df482753
commit 13381f6a4b
2 changed files with 13 additions and 1 deletions

View file

@ -67,7 +67,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
}
/* initialize the device object */
DeviceObject->Flags = DO_DIRECT_IO;
DeviceObject->Flags |= DO_DIRECT_IO;
/* initialize device extension */
DeviceExtension = DeviceObject->DeviceExtension;

View file

@ -76,16 +76,28 @@ typedef struct _MSFS_MESSAGE
#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