VirtualBox

Changeset 58834 in vbox


Ignore:
Timestamp:
Nov 23, 2015 5:47:55 PM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: Fix displaying our boot logo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c

    r58459 r58834  
    743743  if ((BmpHeader->Size != BmpImageSize) ||
    744744      (BmpHeader->Size < BmpHeader->ImageOffset) ||
     745#ifndef VBOX
    745746      (BmpHeader->Size - BmpHeader->ImageOffset !=  BmpHeader->PixelHeight * DataSizePerLine)) {
     747#else
     748      /*
     749       * Our boot logo size is two bytes bigger (some 4 byte alignment in the file I guess)
     750       * than the calculated size which makes the above line fail. Just let it pass as long as there
     751       * is no data underrun.
     752       */
     753      (BmpHeader->Size - BmpHeader->ImageOffset <  BmpHeader->PixelHeight * DataSizePerLine)) {
     754#endif
    746755    return EFI_INVALID_PARAMETER;
    747756  }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette