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.