fix again

This commit is contained in:
love-code-yeyixiao 2024-06-23 16:17:45 +08:00
parent 10ed66bdd4
commit a658a5e3e9
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ _FX int Kernel_GetUserDefaultGeoName(
) { ) {
char* buf = (char*)GlobalAlloc(GMEM_FIXED | GMEM_ZEROINIT, sizeof(char) * geoNameCount); char* buf = (char*)GlobalAlloc(GMEM_FIXED | GMEM_ZEROINIT, sizeof(char) * geoNameCount);
itoa2(SbieApi_QueryConfNumber(NULL, L"FalseAreaNumber", 840),buf,10); 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)); int length = sizeof(GetWC(buf));
lstrcpy(geoName, tmp); lstrcpy(geoName, tmp);
GlobalFree(buf); GlobalFree(buf);