mirror of https://github.com/acidanthera/audk.git
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:
parent
bc369e7975
commit
10c9a2e3f6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue