mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-04-18 18:40:34 +08:00
Fix compatibility issues with Windows XP
This commit is contained in:
parent
efd76a1407
commit
ca2eccc762
@ -67,14 +67,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||
exeName = exeName.substr(last_slash + 1);
|
||||
}
|
||||
|
||||
bool useChinese;
|
||||
{
|
||||
LCID lcid = GetUserDefaultUILanguage();
|
||||
WCHAR nameBuffer[LOCALE_NAME_MAX_LENGTH];
|
||||
useChinese = (LCIDToLocaleName(lcid, nameBuffer, LOCALE_NAME_MAX_LENGTH, 0) != 0)
|
||||
&& (lstrcmp(nameBuffer, L"zh-CN") == 0);
|
||||
}
|
||||
|
||||
bool useChinese = GetUserDefaultUILanguage() == 2052; // zh-CN
|
||||
|
||||
OSVERSIONINFOEX osvi;
|
||||
DWORDLONG dwlConditionMask = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user