mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 09:51:56 +00:00
[USBCCGP]
- Fix bug in the debugging code CORE-6574 svn path=/trunk/; revision=57860
This commit is contained in:
parent
a330365f49
commit
61fdf0a380
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ DumpFullConfigurationDescriptor(
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (((ULONG_PTR)Descriptor + Descriptor->bLength) <= ((ULONG_PTR)ConfigurationDescriptor + ConfigurationDescriptor->wTotalLength))
|
if (((ULONG_PTR)Descriptor) >= ((ULONG_PTR)ConfigurationDescriptor + ConfigurationDescriptor->wTotalLength))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
DbgPrint("Descriptor Type %x Length %lu Offset %lu\n", Descriptor->bDescriptorType, Descriptor->bLength, ((ULONG_PTR)Descriptor - (ULONG_PTR)ConfigurationDescriptor));
|
DbgPrint("Descriptor Type %x Length %lu Offset %lu\n", Descriptor->bDescriptorType, Descriptor->bLength, ((ULONG_PTR)Descriptor - (ULONG_PTR)ConfigurationDescriptor));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue