mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 14:51:27 +00:00
fixed crash when pressing a key while booting up
svn path=/trunk/; revision=6734
This commit is contained in:
parent
7531504712
commit
11cfdfc881
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -75,6 +75,11 @@ GetHotKey (PWINSTATION_OBJECT WinStaObject,
|
||||||
PLIST_ENTRY Entry;
|
PLIST_ENTRY Entry;
|
||||||
PHOT_KEY_ITEM HotKeyItem;
|
PHOT_KEY_ITEM HotKeyItem;
|
||||||
|
|
||||||
|
if(!WinStaObject)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
ExAcquireFastMutex (&WinStaObject->HotKeyListLock);
|
ExAcquireFastMutex (&WinStaObject->HotKeyListLock);
|
||||||
|
|
||||||
Entry = WinStaObject->HotKeyListHead.Flink;
|
Entry = WinStaObject->HotKeyListHead.Flink;
|
||||||
|
|
Loading…
Reference in a new issue