summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-19 08:33:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-19 08:33:07 +0200
commit382c9174b38b96a7d890dd72ab00567a8b687e10 (patch)
tree8086b175ac48d0105a2369d5fe36fff7b275abfe /svl
parent6df0b51fb8141e11dec63b48ef98a40401f9c8e8 (diff)
Clean up the code by using LOWORD
<https://msdn.microsoft.com/en-us/library/windows/desktop/ ms646296(v=vs.85).aspx> documents: "The low word contains a Language Identifier for the input language and the high word contains a device handle to the physical layout of the keyboard. Change-Id: I0b35e7a0f2bf5570dcf57cffe59ed2e2db361d2e
Diffstat (limited to 'svl')
-rw-r--r--svl/source/config/languageoptions.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/config/languageoptions.cxx b/svl/source/config/languageoptions.cxx
index bb256d9f70f3..abc2c7630fb3 100644
--- a/svl/source/config/languageoptions.cxx
+++ b/svl/source/config/languageoptions.cxx
@@ -239,7 +239,7 @@ bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptTyp
for(int i = 0; i < nLayouts; ++i)
{
- LCID lang = MAKELCID((WORD)(reinterpret_cast<DWORD_PTR>(lpList[i]) & 0xffff), SORT_DEFAULT);
+ LCID lang = MAKELCID(LOWORD(lpList[i]), SORT_DEFAULT);
if (MsLangId::getScriptType(LanguageType(lang)) == scriptType)
{
isInstalled = true;