summaryrefslogtreecommitdiff
path: root/plugins/ChangeKeyboardLayout
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2016-06-07 09:03:54 +0000
committerKirill Volinsky <mataes2007@gmail.com>2016-06-07 09:03:54 +0000
commit4dfaa33e510293e5b50d5501d939b2f11ea15903 (patch)
tree800eec5bce7af30d1b6d03cf03466e1809d3f486 /plugins/ChangeKeyboardLayout
parentae9f6f8fd0d452bdd2535d2a4f97ffcc26e89578 (diff)
warnings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ChangeKeyboardLayout')
-rw-r--r--plugins/ChangeKeyboardLayout/src/text_operations.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ChangeKeyboardLayout/src/text_operations.cpp b/plugins/ChangeKeyboardLayout/src/text_operations.cpp
index 644edb9bc9..85295e4ad7 100644
--- a/plugins/ChangeKeyboardLayout/src/text_operations.cpp
+++ b/plugins/ChangeKeyboardLayout/src/text_operations.cpp
@@ -71,7 +71,7 @@ LPTSTR GetShortNameOfLayout(HKL hklLayout)
{
TCHAR szLI[20];
LPTSTR ptszLiShort = (LPTSTR)mir_alloc(3*sizeof(TCHAR));
- DWORD dwLcid = MAKELCID(hklLayout, 0);
+ DWORD dwLcid = MAKELCID(LOWORD(hklLayout), 0);
GetLocaleInfo(dwLcid, LOCALE_SISO639LANGNAME, szLI, 10);
ptszLiShort[0] = toupper(szLI[0]);
ptszLiShort[1] = toupper(szLI[1]);
@@ -216,10 +216,10 @@ HKL GetLayoutOfText(LPCTSTR ptszInText)
int ChangeLayout(HWND hTextWnd, BYTE TextOperation, BOOL CurrentWord)
{
- HKL hklCurLay, hklToLay;
+ HKL hklCurLay = 0, hklToLay = 0;
ptrT ptszInText;
- CHARRANGE crSelection, crTemp;
+ CHARRANGE crSelection = { 0 }, crTemp = { 0 };
DWORD dwStartWord, dwEndWord;
int i, iRes;