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:
klu2 2008-04-28 09:36:18 +00:00
parent 60bb2715d8
commit 9dce17adb7
1 changed files with 4 additions and 2 deletions

View File

@ -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
// //