From 11cfdfc8812c1e3a0c2e33a77f7c55caaf304ab3 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 20 Nov 2003 22:28:49 +0000 Subject: [PATCH] fixed crash when pressing a key while booting up svn path=/trunk/; revision=6734 --- reactos/subsys/win32k/ntuser/hotkey.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/ntuser/hotkey.c b/reactos/subsys/win32k/ntuser/hotkey.c index 2a0f3324911..2f90383d072 100644 --- a/reactos/subsys/win32k/ntuser/hotkey.c +++ b/reactos/subsys/win32k/ntuser/hotkey.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: hotkey.c,v 1.3 2003/11/11 22:17:18 weiden Exp $ +/* $Id: hotkey.c,v 1.4 2003/11/20 22:28:49 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -74,6 +74,11 @@ GetHotKey (PWINSTATION_OBJECT WinStaObject, { PLIST_ENTRY Entry; PHOT_KEY_ITEM HotKeyItem; + + if(!WinStaObject) + { + return FALSE; + } ExAcquireFastMutex (&WinStaObject->HotKeyListLock);