From 5b0b35d5fea1e382fd3ec6572eefbd9af440b6cc Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sat, 29 Jun 2024 21:56:21 +0800 Subject: [PATCH] Debug --- Sandboxie/core/dll/kernel.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Sandboxie/core/dll/kernel.c b/Sandboxie/core/dll/kernel.c index 34ed08ab..d9ddf423 100644 --- a/Sandboxie/core/dll/kernel.c +++ b/Sandboxie/core/dll/kernel.c @@ -258,19 +258,19 @@ _FX BOOLEAN Kernel_Init() } if (SbieApi_QueryConfBool(NULL, L"UseSpoofLocale", FALSE)) { - /*SBIEDLL_HOOK(Kernel_, GetUserDefaultUILanguage); - P_GetUserDefaultLocaleName GetUserDefaultLocaleName = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetUserDefaultLocaleName", "GetUserDefaultLocaleName"); - if (GetUserDefaultLocaleName) - SBIEDLL_HOOK(Kernel_, GetUserDefaultLocaleName);*/ + SBIEDLL_HOOK(Kernel_, GetUserDefaultUILanguage); + //P_GetUserDefaultLocaleName GetUserDefaultLocaleName = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetUserDefaultLocaleName", "GetUserDefaultLocaleName"); + //if (GetUserDefaultLocaleName) + // SBIEDLL_HOOK(Kernel_, GetUserDefaultLocaleName); SBIEDLL_HOOK(Kernel_, GetUserDefaultLCID); SBIEDLL_HOOK(Kernel_, GetUserDefaultLangID); - /*SBIEDLL_HOOK(Kernel_, GetUserDefaultGeoName); + //SBIEDLL_HOOK(Kernel_, GetUserDefaultGeoName); SBIEDLL_HOOK(Kernel_, GetSystemDefaultUILanguage); - P_GetSystemDefaultLocaleName GetSystemDefaultLocaleName = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetSystemDefaultLocaleName", "GetSystemDefaultLocaleName"); - if (GetSystemDefaultLocaleName) - SBIEDLL_HOOK(Kernel_, GetSystemDefaultLocaleName); + //P_GetSystemDefaultLocaleName GetSystemDefaultLocaleName = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetSystemDefaultLocaleName", "GetSystemDefaultLocaleName"); + //if (GetSystemDefaultLocaleName) + // SBIEDLL_HOOK(Kernel_, GetSystemDefaultLocaleName); SBIEDLL_HOOK(Kernel_, GetSystemDefaultLCID); - SBIEDLL_HOOK(Kernel_, GetSystemDefaultLangID);*/ + SBIEDLL_HOOK(Kernel_, GetSystemDefaultLangID); /*SBIEDLL_HOOK(Kernel_, GetLocaleInfoA);