From 7b42ee2289391843605b77c11d098ae04a390617 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 9 Mar 2006 16:27:20 +0000 Subject: [PATCH] - Unlock (these files are clean) - Fix an obvious bug with RtlCompareMemory (thanks to w3seek for spotting this bug) svn path=/trunk/; revision=21272 --- reactos/drivers/usb/usbport/hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/usb/usbport/hub.c b/reactos/drivers/usb/usbport/hub.c index a348315de77..05a3903eb62 100644 --- a/reactos/drivers/usb/usbport/hub.c +++ b/reactos/drivers/usb/usbport/hub.c @@ -1412,7 +1412,7 @@ int usb_physical_reset_device(struct usb_device *dev) le16_to_cpus(&descriptor->idProduct); le16_to_cpus(&descriptor->bcdDevice); - if (RtlCompareMemory(&dev->descriptor, descriptor, sizeof(*descriptor))) { + if (RtlCompareMemory(&dev->descriptor, descriptor, sizeof(*descriptor)) != sizeof(*descriptor)) { kfree(descriptor); usb_destroy_configuration(dev);