Revision: 14335
          http://edk2.svn.sourceforge.net/edk2/?rev=14335&view=rev
Author:   li-elvin
Date:     2013-05-09 08:47:09 +0000 (Thu, 09 May 2013)
Log Message:
-----------
Check if video device exists before trying to install Video OpROM.

Modified Paths:
--------------
    trunk/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c

Modified: trunk/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c
===================================================================
--- trunk/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c    
2013-05-09 07:47:13 UTC (rev 14334)
+++ trunk/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c    
2013-05-09 08:47:09 UTC (rev 14335)
@@ -2914,7 +2914,15 @@
       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
       // driver is controlling video.

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to