mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Enumerates language dlls strictly.
This commit is contained in:
parent
98511e9be9
commit
0de3d9532d
@ -1152,8 +1152,11 @@ INT_PTR CDialogManage::CTabSkins::OnCommand(WPARAM wParam, LPARAM lParam)
|
||||
else if (wParam == ID_CONTEXT_SKINMENU_MONITOR_AUTOSELECT ||
|
||||
wParam == ID_CONTEXT_SKINMENU_MONITOR_PRIMARY ||
|
||||
wParam >= ID_MONITOR_FIRST && wParam <= ID_MONITOR_LAST)
|
||||
{
|
||||
if (m_SkinWindow)
|
||||
{
|
||||
SendMessage(m_SkinWindow->GetWindow(), WM_COMMAND, wParam, 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1645,7 +1648,9 @@ void CDialogManage::CTabSettings::Initialize()
|
||||
if (pos)
|
||||
{
|
||||
LCID lcid = (LCID)wcstoul(fd.cFileName, &pos, 10);
|
||||
if (GetLocaleInfo(lcid, LOCALE_SENGLISHLANGUAGENAME, fd.cFileName, MAX_PATH) > 0)
|
||||
if (pos != fd.cFileName &&
|
||||
_wcsicmp(pos, L".dll") == 0 &&
|
||||
GetLocaleInfo(lcid, LOCALE_SENGLISHLANGUAGENAME, fd.cFileName, MAX_PATH) > 0)
|
||||
{
|
||||
// Strip brackets in language name
|
||||
std::wstring text = fd.cFileName;
|
||||
|
Loading…
Reference in New Issue
Block a user