This commit is contained in:
love-code-yeyixiao 2024-06-23 13:53:00 +08:00
parent e50a5d93a7
commit 89a25ad37e
1 changed files with 3 additions and 2 deletions

View File

@ -398,7 +398,7 @@ _FX BOOL Kernel_QueryPerformanceCounter(LARGE_INTEGER* lpPerformanceCount)
}
_FX LANGID GetUserDefaultUILanguage() {
return SbieApi_QueryConfNumber(NULL, L"FalseLCID", 1033);
return (LANGID)SbieApi_QueryConfNumber(NULL, L"FalseLCID", 1033);
}
typedef int (*LCIDToLocaleName)(
LCID Locale,
@ -469,10 +469,11 @@ char* itoa(int num, char* str, int radix)
return str;
}
#include<cstdlib>
const wchar_t* GetWC(const char* c)
{
const size_t cSize = strlen(c) + 1;
wchar_t* wc = new wchar_t[cSize];
wchar_t* wc = malloc(sizeof(wchar_t£©* cSize));
mbstowcs(wc, c, cSize);
return wc;