From 4c90fa3933cc179d7818fb1a94f7e5a40ffcc29d Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 23 May 2010 17:40:11 +0200 Subject: [PATCH] Always set return value for parallel ports This fixes a crash in ISE 12 but does not lead to working parallel port suppoet --- usb-driver.c | 1 + 1 file changed, 1 insertion(+) 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)