VirtualBox

Changeset 90021 in vbox


Ignore:
Timestamp:
Jul 5, 2021 8:59:14 AM (3 years ago)
Author:
vboxsync
Message:

DevVGA: Fixed regression from r112425, must use RT_MAX to determin logo alloc size. bugref:9904

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r90017 r90021  
    71297129    pThisCC->cbLogo = LogoHdr.cbLogo;
    71307130    if (g_cbVgaDefBiosLogo)
    7131         pThisCC->cbLogo = g_cbVgaDefBiosLogo;
     7131        pThisCC->cbLogo = RT_MAX(pThisCC->cbLogo, g_cbVgaDefBiosLogo);
    71327132# ifndef VBOX_OSE
    71337133    if (g_cbVgaDefBiosLogoNY)
    7134         pThisCC->cbLogo = g_cbVgaDefBiosLogoNY;
     7134        pThisCC->cbLogo = RT_MAX(pThisCC->cbLogo, g_cbVgaDefBiosLogoNY);
    71357135# endif
    71367136    pThisCC->cbLogo += sizeof(LogoHdr);
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