Added some extra error checking to make sure mSecReportStatusCode is valid. I was...
authorajfish <ajfish@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 1 Jun 2006 17:48:40 +0000 (17:48 +0000)
committerajfish <ajfish@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 1 Jun 2006 17:48:40 +0000 (17:48 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@370 6f19259b-4bc3-4df7-8a09-765794883524

EdkNt32Pkg/Pei/MonoStatusCode/Nt32/PlatformStatusCode.c

index 9d1a57b..fcbe864 100644 (file)
@@ -59,7 +59,9 @@ Returns:
 \r
 --*/\r
 {\r
-  mSecReportStatusCode (PeiServices, CodeType, Value, Instance, CallerId, Data);\r
+  if (mSecReportStatusCode != NULL) {\r
+    mSecReportStatusCode (PeiServices, CodeType, Value, Instance, CallerId, Data);\r
+  }\r
   MemoryReportStatusCode (CodeType, Value, Instance, CallerId, Data);\r
   return EFI_SUCCESS;\r
 }\r