[LIBUSB]
authorCameron Gutman <aicommander@gmail.com>
Tue, 3 Apr 2012 14:52:18 +0000 (14:52 +0000)
committerCameron Gutman <aicommander@gmail.com>
Tue, 3 Apr 2012 14:52:18 +0000 (14:52 +0000)
- Fix broken pointer arithmetic

svn path=/trunk/; revision=56327

reactos/lib/drivers/libusb/usb_device.cpp

index f7255a1..de0abab 100644 (file)
@@ -1124,7 +1124,7 @@ CUSBDevice::SelectConfiguration(
         }
 
         // move offset
-        InterfaceInfo = (PUSBD_INTERFACE_INFORMATION)((ULONG_PTR)PtrToUlong(InterfaceInfo) + InterfaceInfo->Length);
+        InterfaceInfo = (PUSBD_INTERFACE_INFORMATION)((PUCHAR)InterfaceInfo + InterfaceInfo->Length);
     }
 
     //