]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/BdsDxe/Hotkey.c
For BdsDxe module,
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / Hotkey.c
index b6cf4539af75e38f5805ab30ecac2fce70bed2e8..da0a2eef5aa9ff6842acc457c473dacdfc9cb2be 100644 (file)
@@ -2,7 +2,7 @@
   Provides a way for 3rd party applications to register themselves for launch by the\r
   Boot Manager based on hot key\r
 \r
-Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -132,6 +132,7 @@ RegisterHotkey (
                    &gEfiGlobalVariableGuid,\r
                    &TempOptionSize\r
                    );\r
+    ASSERT (TempOption != NULL);\r
 \r
     if (CompareMem (TempOption, KeyOption, TempOptionSize) == 0) {\r
       //\r