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
This commit is contained in:
ajfish 2006-06-01 17:48:40 +00:00
parent 85cf9dcbdd
commit 18e40fcd5d
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}