summaryrefslogtreecommitdiff
path: root/EdkNt32Pkg
diff options
context:
space:
mode:
authorajfish <ajfish@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-01 17:48:40 +0000
committerajfish <ajfish@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-01 17:48:40 +0000
commit18e40fcd5d0bdb5ff749fefd8f2f776227f9ddf9 (patch)
tree6962f958bee87bf8c62f4d7bdc0d4884929b7c8b /EdkNt32Pkg
parent85cf9dcbdd26b2a001cf29d419e919f430918e6f (diff)
downloadedk2-platforms-18e40fcd5d0bdb5ff749fefd8f2f776227f9ddf9.tar.xz
Added some extra error checking to make sure mSecReportStatusCode is valid. I was doing an experiment and I was crashing due to lack of this check. The checked in code does not fail in this case, but an extra error check will not hurt.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@370 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkNt32Pkg')
-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;
}