usb_shm: fix use of unalloced handle
This commit is contained in:
parent
a7cce81e76
commit
6a6471125b
3
usbshm.c
3
usbshm.c
|
@ -93,9 +93,6 @@ bool usbshm_is_open(struct usbshm* instance)
|
|||
|
||||
int usbshm_open(struct usbshm* instance, int vendorID, int productID, const unsigned char* serial)
|
||||
{
|
||||
if(instance->handle)
|
||||
return USBSHM_ERROR_ALLREADY_CONNECTED;
|
||||
|
||||
int ret = usbshm_init(instance);
|
||||
if(ret < 0)
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue