From 25d4d83e6b4ea70d46a3c980f3d2456ccb6e4916 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 10 Oct 2009 21:51:24 +0000 Subject: [PATCH] - Fix exception. Spotted by Stefan Ginsberg. svn path=/trunk/; revision=43366 --- reactos/subsystems/win32/win32k/ntuser/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/misc.c b/reactos/subsystems/win32/win32k/ntuser/misc.c index 5d4d451e0f3..0cf0b29826a 100644 --- a/reactos/subsystems/win32/win32k/ntuser/misc.c +++ b/reactos/subsystems/win32/win32k/ntuser/misc.c @@ -492,7 +492,7 @@ GetW32ThreadInfo(VOID) pci->pClientThreadInfo = NULL; // FIXME Need to set it in desktop.c! pci->ppi = ppi; pci->fsHooks = pti->fsHooks; - pci->hKL = pti->KeyboardLayout->hkl; + if (pti->KeyboardLayout) pci->hKL = pti->KeyboardLayout->hkl; /* CI may not have been initialized. */ if (!pci->pDeskInfo && pti->pDeskInfo) { -- 2.17.1