From 0056538299257ef7d5d6fbea928ea88e3b72c8ab Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 3 Apr 2012 14:52:18 +0000 Subject: [PATCH] [LIBUSB] - Fix broken pointer arithmetic svn path=/trunk/; revision=56327 --- reactos/lib/drivers/libusb/usb_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/drivers/libusb/usb_device.cpp b/reactos/lib/drivers/libusb/usb_device.cpp index f7255a1da35..de0abab491f 100644 --- a/reactos/lib/drivers/libusb/usb_device.cpp +++ b/reactos/lib/drivers/libusb/usb_device.cpp @@ -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); } //