[BUGFIX] Ensure bmReserved is a zero

This commit is contained in:
Andrew J. Kroll 2013-09-02 05:34:42 -04:00
parent 42a1be314f
commit ab74e7750a

View file

@ -219,6 +219,7 @@ public:
} }
UsbDeviceAddress addr; UsbDeviceAddress addr;
addr.devAddress = 0; // Ensure all bits are zero
addr.bmParent = ((UsbDeviceAddress*) & parent)->bmAddress; addr.bmParent = ((UsbDeviceAddress*) & parent)->bmAddress;