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).