From: Michael Gernoth Date: Sun, 23 May 2010 15:40:11 +0000 (+0200) Subject: Always set return value for parallel ports X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/commitdiff_plain/4c90fa3933cc179d7818fb1a94f7e5a40ffcc29d?hp=80a14787b97779d86558f414d23f7058b8654c94 Always set return value for parallel ports This fixes a crash in ISE 12 but does not lead to working parallel port suppoet --- diff --git a/usb-driver.c b/usb-driver.c index 55a7463..3bfeee5 100644 --- a/usb-driver.c +++ b/usb-driver.c @@ -115,6 +115,7 @@ static int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) { #ifndef NO_WINDRVR ret = (*ioctl_func) (fd, request, wdioctl); #else + cr->hCard = 0; pport = config_get((unsigned long)cr->Card.Item[0].I.IO.dwAddr / 0x10); if (!pport)