30 Nov
2024
30 Nov
'24
4:25 p.m.
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;
iface_detail = (SP_DEVICE_INTERFACE_DETAIL_DATA_W *)buffer;
Let's initialize the variable like that in its declaration above directly. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6924#note_89321