6 Mar
2025
6 Mar
'25
10:58 p.m.
Elizabeth Figura (@zfigura) commented about dlls/bluetoothapis/main.c:
+ return FALSE; + } + + success = DeviceIoControl( radio, IOCTL_BTH_GET_DEVICE_INFO, list, sizeof( *list ), list, sizeof( *list ), &bytes, + NULL ); + if (!success) + { + free( list ); + return FALSE; + } + if (!list->numOfDevices) + { + free( list ); + SetLastError( ERROR_NO_MORE_ITEMS ); + return FALSE; + } Do we even need this special case? If we changed the next line to "<= 1" wouldn't it work as-is?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7472#note_97037