From da120a1b377708a99855e819a6e027fb80b3da34 Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sun, 23 Jun 2024 16:22:47 +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 4464fdcd..2aff0804 100644 --- a/Sandboxie/core/dll/kernel.c +++ b/Sandboxie/core/dll/kernel.c @@ -470,7 +470,7 @@ char* itoa2(int num, char* str, int radix) } -const wchar_t* GetWC(const char* c) +wchar_t* GetWC(const char* c) { const size_t cSize = strlen(c) + 1; @@ -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); - const wchar_t* tmp = GetWC(buf); + wchar_t* tmp = GetWC(buf); int length = sizeof(GetWC(buf)); lstrcpy(geoName, tmp); GlobalFree(buf);