diff --git a/drivers/usb/usbstor/usbstor.c b/drivers/usb/usbstor/usbstor.c index 75dee31605..4276d81ad5 100644 --- a/drivers/usb/usbstor/usbstor.c +++ b/drivers/usb/usbstor/usbstor.c @@ -192,18 +192,12 @@ DriverEntry( DPRINT("********* USB Storage *********\n"); - DriverObject->DriverUnload = USBSTOR_Unload; - DriverObject->DriverExtension->AddDevice = USBSTOR_AddDevice; - DriverObject->DriverStartIo = USBSTOR_StartIo; - DriverObject->MajorFunction[IRP_MJ_CREATE] = USBSTOR_DispatchClose; - DriverObject->MajorFunction[IRP_MJ_CLOSE] = USBSTOR_DispatchClose; + if(1) + DriverObject->DriverUnload = USBSTOR_Unload; DriverObject->DriverExtension->AddDevice = USBSTOR_AddDevice; DriverObject->DriverStartIo = USBSTOR_StartIo; DriverObject->MajorFunction[IRP_MJ_CREATE] = USBSTOR_DispatchClose; DriverObject->MajorFunction[IRP_MJ_CLOSE] = USBSTOR_DispatchClose; DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = USBSTOR_DispatchDeviceControl; // scsi pass through requests DriverObject->MajorFunction[IRP_MJ_READ] = USBSTOR_DispatchReadWrite; DriverObject->MajorFunction[IRP_MJ_WRITE] = USBSTOR_DispatchReadWrite; - DriverObject->MajorFunction[IRP_MJ_SCSI] = USBSTOR_DispatchScsi; - DriverObject->MajorFunction[IRP_MJ_PNP] = USBSTOR_DispatchPnp; - DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = USBSTOR_DispatchSystemControl; - DriverObject->MajorFunction[IRP_MJ_POWER] = USBSTOR_DispatchPower; + DriverObject->MajorFunction[IRP_MJ_SCSI] = USBSTOR_DispatchScsi; DriverObject->MajorFunction[IRP_MJ_PNP] = USBSTOR_DispatchPnp; DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = USBSTOR_DispatchSystemControl; DriverObject->MajorFunction[IRP_MJ_POWER] = USBSTOR_DispatchPower; return STATUS_SUCCESS; }