mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[win32k]
- Update pti->pClientInfo->hKL when pti->KeyboardLayout changes - Fixes assertion after activating a second keyboard layout svn path=/trunk/; revision=55549
This commit is contained in:
@@ -377,6 +377,7 @@ co_UserActivateKbl(PTHREADINFO pti, PKL pKl, UINT Flags)
|
||||
UserDereferenceObject(pklPrev);
|
||||
|
||||
pti->KeyboardLayout = pKl;
|
||||
pti->pClientInfo->hKL = pKl->hkl;
|
||||
UserReferenceObject(pKl);
|
||||
|
||||
if (Flags & KLF_SETFORPROCESS)
|
||||
|
||||
@@ -1087,6 +1087,7 @@ IntTranslateKbdMessage(LPMSG lpMsg,
|
||||
if (!pti->KeyboardLayout)
|
||||
{
|
||||
pti->KeyboardLayout = W32kGetDefaultKeyLayout();
|
||||
pti->pClientInfo->hKL = pti->KeyboardLayout ? pti->KeyboardLayout->hkl : NULL;
|
||||
pKbdTbl = pti->KeyboardLayout->spkf->pKbdTbl;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user