From a658a5e3e9b765279c97969747ffc88befd3e096 Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sun, 23 Jun 2024 16:17:45 +0800 Subject: [PATCH] fix again --- Sandboxie/core/dll/kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sandboxie/core/dll/kernel.c b/Sandboxie/core/dll/kernel.c index 13a5d440..4464fdcd 100644 --- a/Sandboxie/core/dll/kernel.c +++ b/Sandboxie/core/dll/kernel.c @@ -484,7 +484,7 @@ _FX int Kernel_GetUserDefaultGeoName( ) { char* buf = (char*)GlobalAlloc(GMEM_FIXED | GMEM_ZEROINIT, sizeof(char) * geoNameCount); itoa2(SbieApi_QueryConfNumber(NULL, L"FalseAreaNumber", 840),buf,10); - wchar_t* tmp = GetWC(buf); + const wchar_t* tmp = GetWC(buf); int length = sizeof(GetWC(buf)); lstrcpy(geoName, tmp); GlobalFree(buf);