mirror of
https://github.com/reactos/reactos.git
synced 2025-06-30 12:31:21 +00:00
don't assign DO_DIRECT_IO directly to DeviceObject->Flags
svn path=/trunk/; revision=30633
This commit is contained in:
parent
3d3273d8a4
commit
37f215e162
3 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize driver data */
|
/* Initialize driver data */
|
||||||
DeviceObject->Flags = DO_DIRECT_IO;
|
DeviceObject->Flags |= DO_DIRECT_IO;
|
||||||
// DriverObject->MajorFunction[IRP_MJ_CLOSE] = NtfsClose;
|
// DriverObject->MajorFunction[IRP_MJ_CLOSE] = NtfsClose;
|
||||||
DriverObject->MajorFunction[IRP_MJ_CREATE] = MupCreate;
|
DriverObject->MajorFunction[IRP_MJ_CREATE] = MupCreate;
|
||||||
DriverObject->MajorFunction[IRP_MJ_CREATE_NAMED_PIPE] = MupCreate;
|
DriverObject->MajorFunction[IRP_MJ_CREATE_NAMED_PIPE] = MupCreate;
|
||||||
|
|
|
@ -18,7 +18,7 @@ typedef struct
|
||||||
|
|
||||||
|
|
||||||
/* create.c */
|
/* create.c */
|
||||||
|
DRIVER_DISPATCH MupCreate;
|
||||||
NTSTATUS STDCALL
|
NTSTATUS STDCALL
|
||||||
MupCreate(PDEVICE_OBJECT DeviceObject,
|
MupCreate(PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp);
|
PIRP Irp);
|
||||||
|
|
|
@ -69,7 +69,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize the device object */
|
/* initialize the device object */
|
||||||
DeviceObject->Flags = DO_DIRECT_IO;
|
DeviceObject->Flags |= DO_DIRECT_IO;
|
||||||
|
|
||||||
/* initialize the device extension */
|
/* initialize the device extension */
|
||||||
DeviceExtension = DeviceObject->DeviceExtension;
|
DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue