fixed warning
Modified: trunk/reactos/drivers/usb/usbd/usbd.c
_____
Modified: trunk/reactos/drivers/usb/usbd/usbd.c
--- trunk/reactos/drivers/usb/usbd/usbd.c 2005-04-17 19:56:50 UTC
(rev 14658)
+++ trunk/reactos/drivers/usb/usbd/usbd.c 2005-04-17 20:46:36 UTC
(rev 14659)
@@ -351,15 +351,17 @@
PUCHAR BufferEnd
)
{
+ ULONG_PTR Current;
PUSB_INTERFACE_DESCRIPTOR CurrentDescriptor = InterfaceDescriptor;
DWORD Length = CurrentDescriptor->bLength;
// USB_ENDPOINT_DESCRIPTOR_TYPE
if (CurrentDescriptor->bDescriptorType ==
USB_INTERFACE_DESCRIPTOR_TYPE)
{
- for (;
- (PUCHAR)CurrentDescriptor < BufferEnd;
- (PVOID)CurrentDescriptor += CurrentDescriptor->bLength)
+ for (Current = (ULONG_PTR)CurrentDescriptor;
+ Current < (ULONG_PTR)BufferEnd;
+ Current += CurrentDescriptor->bLength)
+ CurrentDescriptor = (PUSB_INTERFACE_DESCRIPTOR)Current;
Length += CurrentDescriptor->bLength;
}
Show replies by date