Author: rharabien
Date: Fri Oct 21 15:18:04 2011
New Revision: 54225
URL:
http://svn.reactos.org/svn/reactos?rev=54225&view=rev
Log:
[WIN32K] - Implement SPI_GETDEFAULTINPUTLANG.
Modified:
trunk/reactos/subsystems/win32/win32k/include/input.h
trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c
trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c
Modified: trunk/reactos/subsystems/win32/win32k/include/input.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/input.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/input.h [iso-8859-1] Fri Oct 21 15:18:04
2011
@@ -92,3 +92,6 @@
((ks)[GET_KS_BYTE(vk)] |
GET_KS_LOCK_BIT(vk)) : \
((ks)[GET_KS_BYTE(vk)]
& ~GET_KS_LOCK_BIT(vk)))
+
+extern PKL gspklBaseLayout;
+
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c [iso-8859-1] Fri Oct 21
15:18:04 2011
@@ -353,7 +353,7 @@
UserSetDefaultInputLang(HKL hKl)
{
PKL pKl;
-
+
pKl = UserHklToKbl(hKl);
if (!pKl)
return FALSE;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] Fri Oct 21
15:18:04 2011
@@ -1163,8 +1163,10 @@
break;
case SPI_GETDEFAULTINPUTLANG:
- ERR("SPI_GETDEFAULTINPUTLANG is unimplemented\n");
- break;
+ if (!gspklBaseLayout)
+ return FALSE;
+
+ return SpiGet(pvParam, &gspklBaseLayout->hkl, sizeof(HKL), fl);
case SPI_SETDEFAULTINPUTLANG:
{