Feb. 5, 2023
9:37 a.m.
Mohamad Al-Jaf (@maljaf) commented about dlls/windows.media.speech/vosk.c:
+ static const char *vosk_model_identifier = "vosk-model-"; + char lang[3], lang_region[6], *dir_name, *path; + NTSTATUS status = STATUS_UNSUCCESSFUL; + struct dirent *dirent; + DIR *dir; + + TRACE("folder %s, lcid %s, model %p.\n", folder, debugstr_a(lcid), model); + + if (!folder || !model || strlen(lcid) < 4) + return STATUS_UNSUCCESSFUL; + + lstrcpynA(lang, lcid, 3); + lstrcpynA(lang_region, lcid, 6); + + str_to_lower(lang); + str_to_lower(lang_region); I think you can use CharLowerA here instead.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2091#note_23017