Skip to content

Commit de14baf

Browse files
committed
Even more fixes from rebase issues with libusbemu.
Signed-off-by: Kyle Machulis <[email protected]>
1 parent 735b1d1 commit de14baf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/windows/libusb10emu/libusb-1.0/libusbemu.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ static QuickEvent hAbort;
369369

370370
int libusb_handle_events(libusb_context* ctx)
371371
{
372+
int ret = 0;
372373
ctx->mutex.Enter();
373374
ctx->processing.Signal();
374375

@@ -428,7 +429,7 @@ int libusb_handle_events(libusb_context* ctx)
428429
ctx->mutex.Leave();
429430

430431
// 0 on success, or a LIBUSB_ERROR code on failure
431-
return(0);
432+
return(ret);
432433
}
433434

434435
enum EReapResult { ETIMEOUT = -116, ECANCELLED = -998 };

0 commit comments

Comments
 (0)