Rémi Bernon (@rbernon) commented about dlls/bluetoothapis/main.c:
if (!find)
{
SetLastError(ERROR_OUTOFMEMORY);
return NULL;
}
find->devinfo = SetupDiGetClassDevsW(&GUID_BTHPORT_DEVICE_INTERFACE, NULL, NULL,
DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
if (find->devinfo == INVALID_HANDLE_VALUE)
{
free(find); return NULL;
}
iface_detail = (SP_DEVICE_INTERFACE_DETAIL_DATA_W *)buffer;
```suggestion:-0+0 iface_detail = (SP_DEVICE_INTERFACE_DETAIL_DATA_W *)buffer; ```
Let's initialize the variable like that in its declaration above directly.