[USBPORT]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 25 Jun 2017 08:17:33 +0000 (08:17 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 25 Jun 2017 08:17:33 +0000 (08:17 +0000)
- Fix setting the direction in USBPORT_OpenPipe. Patch by Vadim Galyant.

svn path=/trunk/; revision=75194

reactos/drivers/usb/usbport/endpoint.c

index 355d36e..b0ec684 100644 (file)
@@ -796,7 +796,7 @@ USBPORT_OpenPipe(IN PDEVICE_OBJECT FdoDevice,
         goto ExitWithError;
     }
 
-    Direction = USB_ENDPOINT_DIRECTION_IN(EndpointDescriptor->bEndpointAddress);
+    Direction = USB_ENDPOINT_DIRECTION_OUT(EndpointDescriptor->bEndpointAddress);
     EndpointProperties->Direction = Direction;
 
     if (DeviceHandle->IsRootHub)