]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Platform/Generic/MonoStatusCode/Library/Pei/MemoryStatusCode/MemoryStatusCode.c
Add more check to make sure code run safely.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Platform / Generic / MonoStatusCode / Library / Pei / MemoryStatusCode / MemoryStatusCode.c
index c15a930075486ae5b68fe837f7b43bff847c1526..dd4128f365235e3b2061cea0e66cad2201ea93d5 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\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
@@ -289,8 +289,7 @@ Returns:
                               &mPpiListStatusCode\r
                               );\r
     if (EFI_ERROR (Status)) {\r
-      EFI_BREAKPOINT ();\r
-      return ;\r
+      EFI_DEADLOOP ();\r
     }\r
     //\r
     // Publish a GUIDed HOB that contains a pointer to the status code PPI\r
@@ -306,8 +305,7 @@ Returns:
               sizeof (VOID *)\r
               );\r
     if (EFI_ERROR (Status)) {\r
-      EFI_BREAKPOINT ();\r
-      return ;\r
+      EFI_DEADLOOP ();\r
     }\r
   }\r
 }\r