Fixed missing WINAPI for callback function declarations

This commit is contained in:
akallabeth 2022-05-25 10:02:58 +02:00 committed by akallabeth
parent 2677ca0aaf
commit dc6c54af49
2 changed files with 3 additions and 3 deletions

View File

@ -246,7 +246,7 @@ static void async_transfer_user_data_free(ASYNC_TRANSFER_USER_DATA* user_data)
}
}
static void func_iso_callback(struct libusb_transfer* transfer)
static void LIBUSB_CALL func_iso_callback(struct libusb_transfer* transfer)
{
ASYNC_TRANSFER_USER_DATA* user_data = (ASYNC_TRANSFER_USER_DATA*)transfer->user_data;
const UINT32 streamID = stream_id_from_buffer(transfer);
@ -345,7 +345,7 @@ static const LIBUSB_ENDPOINT_DESCEIPTOR* func_get_ep_desc(LIBUSB_CONFIG_DESCRIPT
return NULL;
}
static void func_bulk_transfer_cb(struct libusb_transfer* transfer)
static void LIBUSB_CALL func_bulk_transfer_cb(struct libusb_transfer* transfer)
{
ASYNC_TRANSFER_USER_DATA* user_data;
uint32_t streamID;

View File

@ -862,7 +862,7 @@ static BOOL poll_libusb_events(UDEVMAN* udevman)
return rc > 0;
}
static DWORD poll_thread(LPVOID lpThreadParameter)
static DWORD WINAPI poll_thread(LPVOID lpThreadParameter)
{
libusb_hotplug_callback_handle handle = 0;
UDEVMAN* udevman = (UDEVMAN*)lpThreadParameter;