mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 17:37:09 +00:00
- Unlock (these files are clean)
- Fix an obvious bug with RtlCompareMemory (thanks to w3seek for spotting this bug) svn path=/trunk/; revision=21272
This commit is contained in:
parent
a367ae5948
commit
7b42ee2289
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue