mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-21 08:36:02 -04:00
WinCE: Unlock mutex when error occurs during event handling
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
@@ -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 @@
|
||||
#define LIBUSB_NANO 10976
|
||||
#define LIBUSB_NANO 10977
|
||||
|
||||
Reference in New Issue
Block a user