projects
/
usb-driver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c21a2de
)
only close the parallel port when it was really openend
author
Michael Gernoth
<michael@gernoth.net>
Fri, 29 Jun 2007 16:36:12 +0000
(18:36 +0200)
committer
Michael Gernoth
<michael@gernoth.net>
Fri, 29 Jun 2007 16:36:12 +0000
(18:36 +0200)
usb-driver.c
patch
|
blob
|
blame
|
history
diff --git
a/usb-driver.c
b/usb-driver.c
index be3b94ffaded07ff9285328551126c1ea58c98f9..e6201459046d9f6c8f671f741896472cbf020742 100644
(file)
--- a/
usb-driver.c
+++ b/
usb-driver.c
@@
-636,7
+636,10
@@
int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- pport->close(cr->hCard);
+ if (pport)
+ pport->close(cr->hCard);
+
+ pport = NULL;
#endif
}
break;
Impressum
,
Datenschutz