mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix bug 52637
This commit is contained in:
@ -155,6 +155,13 @@ bool CxImageBMP::Decode(CxFile * hFile)
|
|||||||
if (dwCompression == BI_BITFIELDS)
|
if (dwCompression == BI_BITFIELDS)
|
||||||
{
|
{
|
||||||
hFile->Read(bfmask, 12, 1);
|
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 {
|
} else {
|
||||||
bfmask[0]=0x00FF0000;
|
bfmask[0]=0x00FF0000;
|
||||||
bfmask[1]=0x0000FF00;
|
bfmask[1]=0x0000FF00;
|
||||||
|
|||||||
Reference in New Issue
Block a user