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
@ -1153,7 +1153,10 @@ INT_PTR CDialogManage::CTabSkins::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
wParam == ID_CONTEXT_SKINMENU_MONITOR_PRIMARY ||
|
wParam == ID_CONTEXT_SKINMENU_MONITOR_PRIMARY ||
|
||||||
wParam >= ID_MONITOR_FIRST && wParam <= ID_MONITOR_LAST)
|
wParam >= ID_MONITOR_FIRST && wParam <= ID_MONITOR_LAST)
|
||||||
{
|
{
|
||||||
SendMessage(m_SkinWindow->GetWindow(), WM_COMMAND, wParam, 0);
|
if (m_SkinWindow)
|
||||||
|
{
|
||||||
|
SendMessage(m_SkinWindow->GetWindow(), WM_COMMAND, wParam, 0);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1645,7 +1648,9 @@ void CDialogManage::CTabSettings::Initialize()
|
|||||||
if (pos)
|
if (pos)
|
||||||
{
|
{
|
||||||
LCID lcid = (LCID)wcstoul(fd.cFileName, &pos, 10);
|
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
|
// Strip brackets in language name
|
||||||
std::wstring text = fd.cFileName;
|
std::wstring text = fd.cFileName;
|
||||||
|
Loading…
Reference in New Issue
Block a user