|
From: Adam K. <akr...@ro...> - 2007-06-11 14:42:51
|
On Mon, Jun 11, 2007 at 03:23:38PM +0100, Dave Higton wrote: > > -----Original Message----- > > From: lib...@li... > > [mailto:lib...@li...] On > > Behalf Of Guillaume Dargaud > > Sent: 2007 June 11 15:21 > > To: lib...@li... > > Subject: [Libusb-win32-devel] Everything but usb_bulk_read works... > > > > Hello all, > > I just took my newly formed USB code for Linux and tried it > > on Windows with > > LibUsbWin32. > > > > Everything seems to work fine, including the firmware upload and > > usb_bulk_write, but usb_bulk_read returns -22. > > > > Strangely i couldn't find a table of possible return error > > codes. Any idea ? > > Error 22 is an invalid parameter. Input endpoint addresses > have to have the top bit set - this is incompatible with the > Linux version. It's not incompatible at all. Not setting that bit is a bug on any platform. It just so happens that Linux lets you get away with it. --Adam |