summaryrefslogtreecommitdiff
path: root/plugins/BossKeyPlus
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2016-06-07 08:56:01 +0000
committerKirill Volinsky <mataes2007@gmail.com>2016-06-07 08:56:01 +0000
commitae9f6f8fd0d452bdd2535d2a4f97ffcc26e89578 (patch)
tree4288b171558a177bf2c533677a386f6e052ec06c /plugins/BossKeyPlus
parentb63eccef16eed4f73f2711b66fb93c0062dd0cf8 (diff)
warnings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16931 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BossKeyPlus')
-rw-r--r--plugins/BossKeyPlus/src/BossKey.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp
index ef00e0f10c..1f5acb3b7f 100644
--- a/plugins/BossKeyPlus/src/BossKey.cpp
+++ b/plugins/BossKeyPlus/src/BossKey.cpp
@@ -101,7 +101,7 @@ INT_PTR CALLBACK DlgStdInProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
SetTimer(hDlg, 1, 200, NULL);
oldLayout = GetKeyboardLayout(0);
- if (MAKELCID((WORD)oldLayout & 0xffffffff, SORT_DEFAULT) != (LCID)0x00000409)
+ if (MAKELCID(LOWORD(oldLayout) & 0xffffffff, SORT_DEFAULT) != (LCID)0x00000409)
ActivateKeyboardLayout((HKL)0x00000409, 0);
LanguageChanged(hDlg);
return TRUE;
@@ -157,7 +157,7 @@ static void LanguageChanged(HWND hDlg)
{
char Lang[3] = { 0 };
oldLangID = LangID;
- GetLocaleInfoA(MAKELCID(((WORD)LangID & 0xffffffff), SORT_DEFAULT), LOCALE_SABBREVLANGNAME, Lang, 2);
+ GetLocaleInfoA(MAKELCID((LOWORD(LangID) & 0xffffffff), SORT_DEFAULT), LOCALE_SABBREVLANGNAME, Lang, 2);
Lang[0] = toupper(Lang[0]);
Lang[1] = tolower(Lang[1]);
SetDlgItemTextA(hDlg, IDC_LANG, Lang);