Fix compatibility issues with Windows XP

This commit is contained in:
Glavo 2022-02-08 04:42:04 +08:00 committed by Yuhui Huang
parent efd76a1407
commit ca2eccc762

View File

@ -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;