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.