Rémi Bernon (@rbernon) commented about dlls/windows.media.speech/recognizer.c:
if (CharLowerBuffW(locale, len) != len) return E_FAIL;
- if (!WideCharToMultiByte(CP_ACP, 0, locale, -1, (LPSTR)vosk_create_params.locale, len, NULL, NULL))
- if (!WideCharToMultiByte(CP_ACP, 0, locale, len, (CHAR *)create_params.locale, ARRAY_SIZE(create_params.locale), NULL, NULL))
I don't understand why you kept the cast here, I don't think you need it?