Sync with trunk r63786.
[reactos.git] / lib / drivers / libusb / libusb.cpp
index a6049fa..8f51eb1 100644 (file)
@@ -8,9 +8,11 @@
  *              Johannes Anderwald (johannes.anderwald@reactos.org)
  */
 
-
 #include "libusb.h"
 
+#define NDEBUG
+#include <debug.h>
+
 //
 // driver verifier
 //
@@ -100,7 +102,7 @@ USBLIB_Dispatch(
         case IRP_MJ_POWER:
         {
             //
-            // dispatch pnp
+            // dispatch power
             //
             return DeviceExtension->Dispatcher->HandlePower(DeviceObject, Irp);
         }
@@ -108,10 +110,17 @@ USBLIB_Dispatch(
         case IRP_MJ_DEVICE_CONTROL:
         {
             //
-            // dispatch pnp
+            // dispatch io control
             //
             return DeviceExtension->Dispatcher->HandleDeviceControl(DeviceObject, Irp);
         }
+        case IRP_MJ_SYSTEM_CONTROL:
+        {
+            //
+            // dispatch system control
+            //
+            return DeviceExtension->Dispatcher->HandleSystemControl(DeviceObject, Irp);
+        }
         default:
         {
             DPRINT1("USBLIB_Dispatch> Major %lu Minor %lu unhandeled\n", IoStack->MajorFunction, IoStack->MinorFunction);