WinCE: Unlock mutex when error occurs during event handling

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
Chris Dickens
2015-04-27 17:23:39 -07:00
parent a611862c6c
commit 4ec225e835
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -773,9 +773,11 @@ static int wince_handle_events(
wince_handle_callback(transfer, io_result, io_size);
} else if (found) {
usbi_err(ctx, "matching transfer for fd %x has not completed", fds[i]);
usbi_mutex_unlock(&ctx->open_devs_lock);
return LIBUSB_ERROR_OTHER;
} else {
usbi_err(ctx, "could not find a matching transfer for fd %x", fds[i]);
usbi_mutex_unlock(&ctx->open_devs_lock);
return LIBUSB_ERROR_NOT_FOUND;
}
}
+1 -1
View File
@@ -1 +1 @@
#define LIBUSB_NANO 10976
#define LIBUSB_NANO 10977