From 9dce17adb7515641bf3ce788e188a11d56456292 Mon Sep 17 00:00:00 2001 From: klu2 Date: Mon, 28 Apr 2008 09:36:18 +0000 Subject: 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 --- DuetPkg/DxeIpl/SerialStatusCode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'DuetPkg/DxeIpl/SerialStatusCode.c') diff --git a/DuetPkg/DxeIpl/SerialStatusCode.c b/DuetPkg/DxeIpl/SerialStatusCode.c index 1892a33b6c..1112273373 100644 --- a/DuetPkg/DxeIpl/SerialStatusCode.c +++ b/DuetPkg/DxeIpl/SerialStatusCode.c @@ -720,7 +720,8 @@ Returns: Buffer[0] = '\0'; - if (ReportStatusCodeExtractAssertInfo (CodeType, Value, Data, &Filename, &Description, &LineNumber)) { + if (Data != NULL && + ReportStatusCodeExtractAssertInfo (CodeType, Value, Data, &Filename, &Description, &LineNumber)) { // // Processes PEI_ASSERT () // @@ -733,7 +734,8 @@ Returns: Description ); - } else if (ReportStatusCodeExtractDebugInfo (Data, &ErrorLevel, &Marker, &Format)) { + } else if (Data != NULL && + ReportStatusCodeExtractDebugInfo (Data, &ErrorLevel, &Marker, &Format)) { // // Process PEI_DEBUG () macro to Serial // -- cgit v1.2.3