This commit is contained in:
love-code-yeyixiao 2024-06-23 14:29:01 +08:00
parent bd51012709
commit 199876483a
1 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ _FX int Kernel_GetSystemDefaultLocaleName(
) {
LCIDToLocaleName ltln = Ldr_GetProcAddrNew(Dll_Kernel32, L"LCIDToLocaleName", "LCIDToLocaleName");
if (ltln) {
return ltln(SbieApi_QueryConfBool(NULL, L"FalseLCID", 1033), lpLocaleName, cchLocaleName, 0);
return ltln(SbieApi_QueryConfNumber(NULL, L"FalseLCID", 1033), lpLocaleName, cchLocaleName, 0);
}
else {
if (cchLocaleName >= 4)
@ -514,7 +514,7 @@ _FX LCID Kernel_GetSystemDefaultLCID() {
}
_FX LANGID Kernel_GetSystemDefaultLangID() {
return SbieApi_QueryConfNumber(NULL, L"FalseLCID", 1033);
return (LANGID)SbieApi_QueryConfNumber(NULL, L"FalseLCID", 1033);
}
/*_FX int Kernel_GetLocaleInfoEx(