From 199876483a89485c4bb7b16afcd756643dd65b76 Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sun, 23 Jun 2024 14:29:01 +0800 Subject: [PATCH] fix --- Sandboxie/core/dll/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sandboxie/core/dll/kernel.c b/Sandboxie/core/dll/kernel.c index 8eebc2dd..720ae6f1 100644 --- a/Sandboxie/core/dll/kernel.c +++ b/Sandboxie/core/dll/kernel.c @@ -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(