-------- Original Message --------
Subject: Re: Interest in Sane or LibUSB
From: Kevin Kofler <[email protected]>
To: [email protected]
Date: 03/25/2009 11:46 AM
For libusb-win32, you should probably apply this patch by Romain LiƩvin:
http://svn.tilp.info/cgi-bin/viewcvs.cgi/*checkout*/libticables/trunk/src/win32/usb/libusb-win32.html?rev=4162
Unfortunately no nice diff file there, just a description of what to change,
and the resulting modified .c file:
http://svn.tilp.info/cgi-bin/viewcvs.cgi/libticables/trunk/src/win32/usb/reset_device.c?rev=4162&view=markup
The diff is attached. It's trivial. It seems to have resolved the BSODs
in Vista.
--- src/driver/reset_device.c.orig 2007-03-20 05:33:29.000000000 -0500
+++ src/driver/reset_device.c 2009-05-07 10:41:28.331560796 -0500
@@ -32,14 +32,14 @@
{
DEBUG_ERROR("reset_device(): IOCTL_INTERNAL_USB_RESET_PORT failed: "
"status: 0x%x", status);
- }
- status = call_usbd(dev, NULL, IOCTL_INTERNAL_USB_CYCLE_PORT, timeout);
+ status = call_usbd(dev, NULL, IOCTL_INTERNAL_USB_CYCLE_PORT, timeout);
- if(!NT_SUCCESS(status))
- {
- DEBUG_ERROR("reset_device(): IOCTL_INTERNAL_USB_CYCLE_PORT failed: "
- "status: 0x%x", status);
+ if(!NT_SUCCESS(status))
+ {
+ DEBUG_ERROR("reset_device(): IOCTL_INTERNAL_USB_CYCLE_PORT failed: "
+ "status: 0x%x", status);
+ }
}
return status;
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw