dummyconfig is now static, however control_quirk is still needed. (wtf)
[ppcskel.git] / usb / core / usb.c
index 0d8edca3cf4787735e91455a62242aa9c0d48ab5..bfb37a6960ec7e89cd37619dacd2ac6b0ae9012e 100644 (file)
@@ -163,8 +163,8 @@ u8 usb_control_msg(usb_device *dev, u8 requesttype, u8 request, u16 value, u16 i
        buf[4]=(char)(index);
        buf[5]=(char)(index >> 8);
        // lenght buf are the only where the order is inverted
-       buf[6]=(char)(length >> 8);
-       buf[7]=(char)(length);
+       buf[6]=(char)(length);
+       buf[7]=(char)(length >> 8);
 #endif
 
        irp->buffer = buf;