Fix bug 52637

This commit is contained in:
Oleg Korshul
2021-11-03 10:52:37 +03:00
parent 140802ac66
commit fc612032fd

View File

@ -155,6 +155,13 @@ bool CxImageBMP::Decode(CxFile * hFile)
if (dwCompression == BI_BITFIELDS)
{
hFile->Read(bfmask, 12, 1);
if (0xFFFFFFFF == bfmask[0] && 0xFFFFFFFF == bfmask[1] && 0xFFFFFFFF == bfmask[2]) {
bfmask[0]=0x00FF0000;
bfmask[1]=0x0000FF00;
bfmask[2]=0x000000FF;
}
} else {
bfmask[0]=0x00FF0000;
bfmask[1]=0x0000FF00;