Huw Davies (@huw) commented about dlls/winecoreaudio.drv/coreaudio.c:
endpoint = params->endpoints; for(i = 0; i < params->num; i++){
SIZE_T len = CFStringGetLength(info[i].name);
needed += (len + 1) * sizeof(WCHAR);
SIZE_T name_len = CFStringGetLength(info[i].name) + 1;
const SIZE_T len = MAX_DEV_NAME_LEN + 1;
Let's call this `device_len`.