29 Jun
2023
29 Jun
'23
7:38 p.m.
Alexandre Julliard (@julliard) commented about dlls/wineoss.drv/mmdevdrv.c:
+static BOOL get_device_name_from_guid(GUID *guid, char **name, EDataFlow *flow) { OSSDevice *dev_item; LIST_FOR_EACH_ENTRY(dev_item, &g_devices, OSSDevice, entry) - if(IsEqualGUID(guid, &dev_item->guid)) - return dev_item; - return NULL; + if(IsEqualGUID(guid, &dev_item->guid)){ + if((*name = strdup(dev_item->devnode))){ + return TRUE; + } + + return FALSE; + } + + return FALSE; The EDataFlow* argument is not set here, but the caller relies on it.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3177#note_37402