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?