Changeset 90200 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA.cpp
- Timestamp:
- Jul 14, 2021 11:55:28 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r90021 r90200 3857 3857 * Get bitmap header data 3858 3858 */ 3859 PCLOGOHDR pLogoHdr = (PCLOGOHDR)pThisCC->pbLogo; 3859 3860 PBMPFILEHDR pFileHdr = (PBMPFILEHDR)(pThisCC->pbLogo + sizeof(LOGOHDR)); 3860 3861 PBMPWIN3XINFOHDR pCoreHdr = (PBMPWIN3XINFOHDR)(pThisCC->pbLogo + sizeof(LOGOHDR) + sizeof(BMPFILEHDR)); … … 3920 3921 3921 3922 AssertLogRelMsgReturn(pThisCC->LogoCompression == BMP_COMPRESSION_TYPE_NONE, 3922 3923 3924 3925 AssertLogRelMsgReturn(p FileHdr->cbFileSize> pFileHdr->offBits,3926 ("Wrong bitmap data offset %u.\n", pFileHdr->offBits),3927 3928 3929 uint32_t const cbFileData = p FileHdr->cbFileSize- pFileHdr->offBits;3923 ("Unsupported %u compression.\n", pThisCC->LogoCompression), 3924 VERR_INVALID_PARAMETER); 3925 3926 AssertLogRelMsgReturn(pLogoHdr->cbLogo > pFileHdr->offBits, 3927 ("Wrong bitmap data offset %u, cbLogo=%u.\n", pFileHdr->offBits, pLogoHdr->cbLogo), 3928 VERR_INVALID_PARAMETER); 3929 3930 uint32_t const cbFileData = pLogoHdr->cbLogo - pFileHdr->offBits; 3930 3931 uint32_t cbImageData = (uint32_t)pThisCC->cxLogo * pThisCC->cyLogo * pThisCC->cLogoPlanes; 3931 3932 if (pThisCC->cLogoBits == 4) … … 3934 3935 cbImageData *= 3; 3935 3936 AssertLogRelMsgReturn(cbImageData <= cbFileData, 3936 ("Wrong BMP header data %u\n", cbImageData), 3937 ("Wrong BMP header data %u (cbLogo=%u offBits=%u)\n", cbImageData, pFileHdr->offBits, pLogoHdr->cbLogo), 3938 VERR_INVALID_PARAMETER); 3939 3940 AssertLogRelMsgReturn(pLogoHdr->cbLogo == pFileHdr->cbFileSize, 3941 ("Wrong bitmap file size %u, cbLogo=%u.\n", pFileHdr->cbFileSize, pLogoHdr->cbLogo), 3937 3942 VERR_INVALID_PARAMETER); 3938 3943
Note:
See TracChangeset
for help on using the changeset viewer.