From: Johannes Anderwald Date: Mon, 10 Dec 2012 08:50:21 +0000 (+0000) Subject: [USBCCGP] X-Git-Tag: backups/ros-csrss@60644~107^2~4 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=61fdf0a38096be11ad4610dc131e11a3a3ccda50 [USBCCGP] - Fix bug in the debugging code CORE-6574 svn path=/trunk/; revision=57860 --- diff --git a/reactos/drivers/usb/usbccgp/descriptor.c b/reactos/drivers/usb/usbccgp/descriptor.c index fa2cb22e34f..fecb5f3b48e 100644 --- a/reactos/drivers/usb/usbccgp/descriptor.c +++ b/reactos/drivers/usb/usbccgp/descriptor.c @@ -282,7 +282,7 @@ DumpFullConfigurationDescriptor( do { - if (((ULONG_PTR)Descriptor + Descriptor->bLength) <= ((ULONG_PTR)ConfigurationDescriptor + ConfigurationDescriptor->wTotalLength)) + if (((ULONG_PTR)Descriptor) >= ((ULONG_PTR)ConfigurationDescriptor + ConfigurationDescriptor->wTotalLength)) break; DbgPrint("Descriptor Type %x Length %lu Offset %lu\n", Descriptor->bDescriptorType, Descriptor->bLength, ((ULONG_PTR)Descriptor - (ULONG_PTR)ConfigurationDescriptor));