fixed crash when pressing a key while booting up

svn path=/trunk/; revision=6734
This commit is contained in:
Thomas Bluemel 2003-11-20 22:28:49 +00:00
parent 7531504712
commit 11cfdfc881

View file

@ -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
@ -75,6 +75,11 @@ GetHotKey (PWINSTATION_OBJECT WinStaObject,
PLIST_ENTRY Entry;
PHOT_KEY_ITEM HotKeyItem;
if(!WinStaObject)
{
return FALSE;
}
ExAcquireFastMutex (&WinStaObject->HotKeyListLock);
Entry = WinStaObject->HotKeyListHead.Flink;