15 Sep
2022
15 Sep
'22
8:20 a.m.
Huw Davies (@huw) commented about dlls/winecoreaudio.drv/mmdevdrv.c:
RegCloseKey(drv_key); }
-static void get_device_guid(EDataFlow flow, DWORD device_id, GUID *guid) +static void get_device_guid(EDataFlow flow, const char *dev, GUID *guid) { HKEY key = NULL, dev_key; DWORD type, size = sizeof(*guid); - WCHAR key_name[256]; + WCHAR key_name[MAX_DEV_NAME_LEN + 2];
You can leave this as `256`. Remember the aim is to reduce the differences with the other drivers' client code, not increase it. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/813#note_8492