diff --git a/reactos/subsystems/win32/win32k/include/input.h b/reactos/subsystems/win32/win32k/include/input.h index 5239843703d..a1153db87c2 100644 --- a/reactos/subsystems/win32/win32k/include/input.h +++ b/reactos/subsystems/win32/win32k/include/input.h @@ -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; + diff --git a/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c b/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c index 34ce5a00694..33be436cc84 100644 --- a/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c +++ b/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c @@ -353,7 +353,7 @@ NTAPI UserSetDefaultInputLang(HKL hKl) { PKL pKl; - + pKl = UserHklToKbl(hKl); if (!pKl) return FALSE; diff --git a/reactos/subsystems/win32/win32k/ntuser/sysparams.c b/reactos/subsystems/win32/win32k/ntuser/sysparams.c index 9ff4e4765d3..9ce4f720cb8 100644 --- a/reactos/subsystems/win32/win32k/ntuser/sysparams.c +++ b/reactos/subsystems/win32/win32k/ntuser/sysparams.c @@ -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: {