Fixed missing async user data extraction from libusb transfer

This commit is contained in:
akallabeth 2020-08-11 14:12:36 +02:00
parent 93ee13245c
commit 786f6bbfe8

View File

@ -94,6 +94,7 @@ static struct libusb_transfer* list_contains(wArrayList* list, UINT32 streamID)
#if defined(HAVE_STREAM_ID_API) #if defined(HAVE_STREAM_ID_API)
const UINT32 currentID = libusb_transfer_get_stream_id(transfer); const UINT32 currentID = libusb_transfer_get_stream_id(transfer);
#else #else
const ASYNC_TRANSFER_USER_DATA* user_data = (ASYNC_TRANSFER_USER_DATA*)transfer->user_data;
const UINT32 currentID = user_data->streamID; const UINT32 currentID = user_data->streamID;
#endif #endif
if (currentID == streamID) if (currentID == streamID)