6 Mar
2025
6 Mar
'25
10:58 p.m.
Elizabeth Figura (@zfigura) commented about dlls/bluetoothapis/main.c:
+ hfind = malloc( sizeof( *hfind ) ); + if (!hfind) + { + free( device_list ); + SetLastError( ERROR_OUTOFMEMORY ); + return NULL; + } + + memcpy( hfind, params, sizeof( *params ) ); + hfind->device_list = device_list; + hfind->idx = 0; + if (!device_find_set_next( hfind, info )) + { + free( hfind->device_list ); + free( hfind ); + SetLastError( ERROR_NO_MORE_ITEMS ); Since BluetoothFindNextDevice() returns the same error we could just factor this in.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7472#note_97032