[SHELL32] SHChangeNotify: Add drive, remove drive (#6782)
[reactos.git] / drivers / usb / usbccgp / usbccgp.c
index 1725442..235d6f8 100644 (file)
@@ -11,6 +11,9 @@
 
 #include "usbccgp.h"
 
+#define NDEBUG
+#include <debug.h>
+
 /* Driver verifier */
 DRIVER_ADD_DEVICE USBCCGP_AddDevice;
 
@@ -74,7 +77,7 @@ USBCCGP_AddDevice(
 NTSTATUS
 NTAPI
 USBCCGP_CreateClose(
-    PDEVICE_OBJECT DeviceObject, 
+    PDEVICE_OBJECT DeviceObject,
     PIRP Irp)
 {
     PCOMMON_DEVICE_EXTENSION DeviceExtension;
@@ -107,7 +110,7 @@ USBCCGP_CreateClose(
 NTSTATUS
 NTAPI
 USBCCGP_Dispatch(
-    PDEVICE_OBJECT DeviceObject, 
+    PDEVICE_OBJECT DeviceObject,
     PIRP Irp)
 {
     PCOMMON_DEVICE_EXTENSION DeviceExtension;
@@ -160,7 +163,8 @@ DriverEntry(
     DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = USBCCGP_Dispatch;
     DriverObject->MajorFunction[IRP_MJ_POWER] = USBCCGP_Dispatch;
     DriverObject->MajorFunction[IRP_MJ_PNP] = USBCCGP_Dispatch;
-       DriverObject->DriverUnload = USBCCGP_Unload;
+    DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = USBCCGP_Dispatch;
+    DriverObject->DriverUnload = USBCCGP_Unload;
 
     /* FIMXE query GenericCompositeUSBDeviceString */