Add NULL pointer checking against Data.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10725 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24 2010-07-30 08:41:57 +00:00
parent bc369e7975
commit 10c9a2e3f6
2 changed files with 4 additions and 2 deletions

View File

@ -126,7 +126,8 @@ SerialStatusCodeReportWorker (
Value,
Instance
);
} else if (CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&
} else if (Data != NULL &&
CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&
((EFI_STATUS_CODE_STRING_DATA *) Data)->StringType == EfiStringAscii) {
//
// EFI_STATUS_CODE_STRING_DATA

View File

@ -124,7 +124,8 @@ SerialStatusCodeReportWorker (
Value,
Instance
);
} else if (CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&
} else if (Data != NULL &&
CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&
((EFI_STATUS_CODE_STRING_DATA *) Data)->StringType == EfiStringAscii) {
//
// EFI_STATUS_CODE_STRING_DATA