Changeset 90017 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 5, 2021 1:02:52 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r88545 r90017 3927 3927 VERR_INVALID_PARAMETER); 3928 3928 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; 3933 3931 if (pThisCC->cLogoBits == 4) 3934 {3935 3932 cbImageData /= 2; 3936 } else if (pThisCC->cLogoBits == 24) 3937 { 3933 else if (pThisCC->cLogoBits == 24) 3938 3934 cbImageData *= 3; 3939 }3940 3941 3935 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); 3944 3938 3945 3939 /*
Note:
See TracChangeset
for help on using the changeset viewer.