Always set return value for parallel ports
authorMichael Gernoth <michael@gernoth.net>
Sun, 23 May 2010 15:40:11 +0000 (17:40 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 23 May 2010 15:40:11 +0000 (17:40 +0200)
This fixes a crash in ISE 12 but does not lead to working parallel
port suppoet

usb-driver.c

index 55a74637991af424a683168c3b29d1bef882fd6f..3bfeee5558f4c507b79f8e7a89679694c4b7e900 100644 (file)
@@ -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)
Impressum, Datenschutz