[WIN32K] - Implement SPI_GETDEFAULTINPUTLANG.

svn path=/trunk/; revision=54225
This commit is contained in:
Rafal Harabien 2011-10-21 15:18:04 +00:00
parent 0d2b2baf4d
commit 5d67b60839
3 changed files with 8 additions and 3 deletions

View file

@ -92,3 +92,6 @@ extern BYTE gafAsyncKeyState[256 * 2 / 8]; // 2 bits per key
((ks)[GET_KS_BYTE(vk)] | GET_KS_LOCK_BIT(vk)) : \
((ks)[GET_KS_BYTE(vk)] & ~GET_KS_LOCK_BIT(vk)))
extern PKL gspklBaseLayout;

View file

@ -353,7 +353,7 @@ NTAPI
UserSetDefaultInputLang(HKL hKl)
{
PKL pKl;
pKl = UserHklToKbl(hKl);
if (!pKl)
return FALSE;

View file

@ -1163,8 +1163,10 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
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:
{