mirror of https://github.com/acidanthera/audk.git
Fix a bug for producing status code instance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5141 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
60bb2715d8
commit
9dce17adb7
|
@ -720,7 +720,8 @@ Returns:
|
||||||
|
|
||||||
Buffer[0] = '\0';
|
Buffer[0] = '\0';
|
||||||
|
|
||||||
if (ReportStatusCodeExtractAssertInfo (CodeType, Value, Data, &Filename, &Description, &LineNumber)) {
|
if (Data != NULL &&
|
||||||
|
ReportStatusCodeExtractAssertInfo (CodeType, Value, Data, &Filename, &Description, &LineNumber)) {
|
||||||
//
|
//
|
||||||
// Processes PEI_ASSERT ()
|
// Processes PEI_ASSERT ()
|
||||||
//
|
//
|
||||||
|
@ -733,7 +734,8 @@ Returns:
|
||||||
Description
|
Description
|
||||||
);
|
);
|
||||||
|
|
||||||
} else if (ReportStatusCodeExtractDebugInfo (Data, &ErrorLevel, &Marker, &Format)) {
|
} else if (Data != NULL &&
|
||||||
|
ReportStatusCodeExtractDebugInfo (Data, &ErrorLevel, &Marker, &Format)) {
|
||||||
//
|
//
|
||||||
// Process PEI_DEBUG () macro to Serial
|
// Process PEI_DEBUG () macro to Serial
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue