Always set return value for parallel ports
This fixes a crash in ISE 12 but does not lead to working parallel port suppoet
This commit is contained in:
parent
80a14787b9
commit
4c90fa3933
@ -115,6 +115,7 @@ static int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
|
|||||||
#ifndef NO_WINDRVR
|
#ifndef NO_WINDRVR
|
||||||
ret = (*ioctl_func) (fd, request, wdioctl);
|
ret = (*ioctl_func) (fd, request, wdioctl);
|
||||||
#else
|
#else
|
||||||
|
cr->hCard = 0;
|
||||||
|
|
||||||
pport = config_get((unsigned long)cr->Card.Item[0].I.IO.dwAddr / 0x10);
|
pport = config_get((unsigned long)cr->Card.Item[0].I.IO.dwAddr / 0x10);
|
||||||
if (!pport)
|
if (!pport)
|
||||||
|
Reference in New Issue
Block a user