mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
Check if video device exists before trying to install Video OpROM.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14335 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
30a95d4d39
commit
ee65c5083b
@ -2914,7 +2914,15 @@ LegacyBiosInstallPciRom (
|
|||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Private->VgaInstalled) {
|
Status = Private->LegacyBiosPlatform->GetPlatformHandle (
|
||||||
|
Private->LegacyBiosPlatform,
|
||||||
|
EfiGetPlatformVgaHandle,
|
||||||
|
0,
|
||||||
|
&HandleBuffer,
|
||||||
|
&HandleCount,
|
||||||
|
NULL
|
||||||
|
);
|
||||||
|
if ((!EFI_ERROR (Status)) && (!Private->VgaInstalled)) {
|
||||||
//
|
//
|
||||||
// A return status of EFI_NOT_FOUND is considered valid (No EFI
|
// A return status of EFI_NOT_FOUND is considered valid (No EFI
|
||||||
// driver is controlling video.
|
// driver is controlling video.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user