VirtualBox

Changeset 90017 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 5, 2021 1:02:52 AM (3 years ago)
Author:
vboxsync
Message:

DevVGA: Style fixes. Removed irrelevant 32-bit comment (not supported, see 4 assertions up). bugref:9904

File:
1 edited

Legend:

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

    r88545 r90017  
    39273927                               VERR_INVALID_PARAMETER);
    39283928
    3929         uint32_t cbFileData = pFileHdr->cbFileSize - pFileHdr->offBits;
    3930         uint32_t cbImageData = pThisCC->cxLogo * pThisCC->cyLogo * pThisCC->cLogoPlanes;
    3931 
    3932         /* TBD: Take 32bit rows padding into account */
     3929        uint32_t const cbFileData  = pFileHdr->cbFileSize - pFileHdr->offBits;
     3930        uint32_t       cbImageData = (uint32_t)pThisCC->cxLogo * pThisCC->cyLogo * pThisCC->cLogoPlanes;
    39333931        if (pThisCC->cLogoBits == 4)
    3934         {
    39353932            cbImageData /= 2;
    3936         } else if (pThisCC->cLogoBits == 24)
    3937         {
     3933        else if (pThisCC->cLogoBits == 24)
    39383934            cbImageData *= 3;
    3939         }
    3940 
    39413935        AssertLogRelMsgReturn(cbImageData <= cbFileData,
    3942             ("Wrong BMP header data %d\n", cbImageData),
    3943             VERR_INVALID_PARAMETER);
     3936                              ("Wrong BMP header data %u\n", cbImageData),
     3937                              VERR_INVALID_PARAMETER);
    39443938
    39453939        /*
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