Skip to content

(untested) Signal overlapped from caller in LUsb0_ControlTransfer #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions libusbK/src/lusbk_bknd_libusb0.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ KUSB_EXP BOOL KUSB_API LUsb0_ControlTransfer(
int ret;
PKUSB_HANDLE_INTERNAL handle;

UNUSED(Overlapped);

Pub_To_Priv_UsbK(InterfaceHandle, handle, return FALSE);
ErrorSetAction(!PoolHandle_Inc_UsbK(handle), ERROR_RESOURCE_NOT_AVAILABLE, return FALSE, "->PoolHandle_Inc_UsbK");

Expand All @@ -73,6 +71,9 @@ KUSB_EXP BOOL KUSB_API LUsb0_ControlTransfer(

PoolHandle_Dec_UsbK(handle);

if (Overlapped && Overlapped.hEvent)
return SetEvent(Overlapped.hEvent);

return success;
}

Expand Down Expand Up @@ -310,4 +311,4 @@ int _usb_io_sync(HANDLE dev, unsigned int code, void *out, int out_size,

CloseHandle(ol.hEvent);
return FALSE;
}
}