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:
@@ -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);
|
MemoryReportStatusCode (CodeType, Value, Instance, CallerId, Data);
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user