Author: cgutman
Date: Tue Apr 3 14:52:18 2012
New Revision: 56327
URL:
http://svn.reactos.org/svn/reactos?rev=56327&view=rev
Log:
[LIBUSB]
- Fix broken pointer arithmetic
Modified:
trunk/reactos/lib/drivers/libusb/usb_device.cpp
Modified: trunk/reactos/lib/drivers/libusb/usb_device.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/libusb/usb_dev…
==============================================================================
--- trunk/reactos/lib/drivers/libusb/usb_device.cpp [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/libusb/usb_device.cpp [iso-8859-1] Tue Apr 3 14:52:18 2012
@@ -1124,7 +1124,7 @@
}
// move offset
- InterfaceInfo =
(PUSBD_INTERFACE_INFORMATION)((ULONG_PTR)PtrToUlong(InterfaceInfo) +
InterfaceInfo->Length);
+ InterfaceInfo = (PUSBD_INTERFACE_INFORMATION)((PUCHAR)InterfaceInfo +
InterfaceInfo->Length);
}
//