Author: janderwald
Date: Mon Dec 10 08:50:21 2012
New Revision: 57860
URL:
http://svn.reactos.org/svn/reactos?rev=57860&view=rev
Log:
[USBCCGP]
- Fix bug in the debugging code
CORE-6574
Modified:
trunk/reactos/drivers/usb/usbccgp/descriptor.c
Modified: trunk/reactos/drivers/usb/usbccgp/descriptor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbccgp/descri…
==============================================================================
--- trunk/reactos/drivers/usb/usbccgp/descriptor.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbccgp/descriptor.c [iso-8859-1] Mon Dec 10 08:50:21 2012
@@ -282,7 +282,7 @@
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));