From 4dfaa33e510293e5b50d5501d939b2f11ea15903 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 7 Jun 2016 09:03:54 +0000 Subject: warnings fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ChangeKeyboardLayout/src/text_operations.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/ChangeKeyboardLayout/src/text_operations.cpp') 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; -- cgit v1.2.3