]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/BsSerialStatusCode/BsSerialStatusCode.c
Add more check to make sure code run safely.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Platform / Generic / RuntimeDxe / StatusCode / Lib / BsSerialStatusCode / BsSerialStatusCode.c
index 9c42cb198d8899adc6ca4603eb97a0a7b158a067..15603cb645a465db676e07ebe1128246c640bbc4 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2004 - 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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -2073,8 +2073,8 @@ Returns:
 {\r
   UINTN Current;\r
 \r
-  ASSERT (Table);\r
-  ASSERT (Token);\r
+  ASSERT (Table != NULL);\r
+  ASSERT (Token != NULL);\r
 \r
   Current = 0;\r
   *Token  = 0;\r