summaryrefslogtreecommitdiff
path: root/EdkNt32Pkg/Pei
diff options
context:
space:
mode:
Diffstat (limited to 'EdkNt32Pkg/Pei')
-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;
}