Update description of fake-api GetUserLangID

This commit is contained in:
Inori 2019-08-31 14:53:27 -04:00 committed by Inori
parent 404369cd9f
commit f09feca484
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ mkxp-z provides limited support for some WinAPI functions that would normally br
* `SetCapture`: No-op. Always returns `571`.
* `ReleaseCapture`: No-op.
* `GetPrivateProfileString`: Emulated with MKXP's ini code.
* `GetUserDefaultLangId`: Always returns English (`0xc09`).
* `GetUserDefaultLangId`: Checks for JP, EN, FR, IT, DE, ES, KO, PT and ZH. Returns English (`0x09`) if the locale can't be determined. Doesn't handle sublanguages. Use `MKXP.user_language` instead.
## What doesn't work (yet)

View file

@ -63,7 +63,7 @@ const char *getUserLanguage()
static char buf[50] = {0};
#if defined(__WIN32__)
wchar_t wbuf[50] = {0};
LANGID lid = GetUserDefaultLangId();
LANGID lid = GetUserDefaultLangID();
LCIDToLocaleName(lid, wbuf, sizeof(wbuf), 0);
wcstombs(buf, wbuf, sizeof(buf));
#else