summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--EdkNt32Pkg/Pei/MonoStatusCode/Nt32/PlatformStatusCode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/EdkNt32Pkg/Pei/MonoStatusCode/Nt32/PlatformStatusCode.c b/EdkNt32Pkg/Pei/MonoStatusCode/Nt32/PlatformStatusCode.c
index 9d1a57b2ee..fcbe86465c 100644
--- a/EdkNt32Pkg/Pei/MonoStatusCode/Nt32/PlatformStatusCode.c
+++ b/EdkNt32Pkg/Pei/MonoStatusCode/Nt32/PlatformStatusCode.c
@@ -59,7 +59,9 @@ Returns:
--*/
{
- mSecReportStatusCode (PeiServices, CodeType, Value, Instance, CallerId, Data);
+ if (mSecReportStatusCode != NULL) {
+ mSecReportStatusCode (PeiServices, CodeType, Value, Instance, CallerId, Data);
+ }
MemoryReportStatusCode (CodeType, Value, Instance, CallerId, Data);
return EFI_SUCCESS;
}