<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">trying to implement RemoteUSB on Windows, and found the following code in rdpusb.c:<br><br>static void<br>rdpusb_send_reply (uint8_t code, uint8_t status, uint32_t devid)<br>{<br>    STREAM s = rdpusb_init_packet(1, code);<br>    out_uint8(s, status);<br>    out_uint32_le(s, devid);<br>    s_mark_end(s);<br>    rdpusb_send(s);<br>}<br><br>the first line seems to be incorrect, should it be something like this: (i.e., 1 --> 5 for the length)<br><br>STREAM s = rdpusb_init_packet(5, code);  <br><br>Tried very hard to play with remote usb using rdesktop-vrdp, it never worked for me. The Windows guest shows some error in Mass Storage Device. The usb was initially detected inside vm, but never worked. It's a flash drive.<br><br></td></tr></table>