[ros-diffs] [greatlrd] 19499: Verify VBE is found and not anything else, is a safe check.

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Wed Nov 23 21:37:42 CET 2005


Verify VBE is found and not anything else, is a safe check.
Modified: trunk/reactos/drivers/video/miniport/vbe/vbemp.c
  _____  

Modified: trunk/reactos/drivers/video/miniport/vbe/vbemp.c
--- trunk/reactos/drivers/video/miniport/vbe/vbemp.c	2005-11-23
20:23:41 UTC (rev 19498)
+++ trunk/reactos/drivers/video/miniport/vbe/vbemp.c	2005-11-23
20:37:38 UTC (rev 19499)
@@ -241,6 +241,13 @@

          &VBEDeviceExtension->VbeInfo,
          sizeof(VBEDeviceExtension->VbeInfo));
 
+	  /* Verify VBE is found and not an²thing else */
+	  if (strncmp(VBEDeviceExtension->VbeInfo.Signature,"VESA",4) !=
0)
+	  {
+         DPRINT("No VBE BIOS present\n");
+         return FALSE;
+	  }
+      
 	  /* Dectect Bad VBE BIOS some Graphice card report 0x200 when
they are VBE 1.2 */
 	  if (VBEDeviceExtension->VbeInfo.OemVendorNamePtr == 0 &&
VBEDeviceExtension->VbeInfo.Version == 0x200)
 	  {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051123/d24c0df3/attachment.html


More information about the Ros-diffs mailing list