[USBCCGP]

- Fix bug in the debugging code
CORE-6574

svn path=/trunk/; revision=57860
This commit is contained in:
Johannes Anderwald 2012-12-10 08:50:21 +00:00
parent a330365f49
commit 61fdf0a380

View file

@ -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));