2 Mar
2023
2 Mar
'23
4:02 p.m.
Jinoh Kang (@iamahuman) commented about dlls/windows.media.speech/unixlib.c:
+ + TRACE("path %s, locale %s, model %p.\n", path, debugstr_a(locale), model); + + if (!path || !locale || (len = strlen(locale)) < 4) + return STATUS_UNSUCCESSFUL; + + if (!(dir = opendir(path))) + return STATUS_UNSUCCESSFUL; + + path_len = strlen(path); + str = strchr(locale, '-'); + *model = NULL; + + while ((dirent = readdir(dir))) + { + if (dirent->d_type != DT_DIR) `d_type` is unportable. Also, it can be `DT_UNKNOWN` if the filesystem does not support `d_type` (e.g. FAT).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2091#note_26015