Add RomImage pointer NULL check.

Signed-off-by: li-elvin
Reviewed-by: niruiyu


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12473 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
li-elvin 2011-09-29 06:35:51 +00:00
parent 04eb20aa85
commit 16adc27692
1 changed files with 1 additions and 1 deletions

View File

@ -2849,7 +2849,7 @@ LegacyBiosInstallPciRom (
return EFI_UNSUPPORTED; return EFI_UNSUPPORTED;
} }
} else { } else {
if (*RomImage == NULL) { if ((RomImage == NULL) || (*RomImage == NULL)) {
// //
// If PciHandle is NULL, and no OpRom is to be associated // If PciHandle is NULL, and no OpRom is to be associated
// //