Fix bug 47276

This commit is contained in:
Oleg Korshul
2020-11-08 10:07:13 +03:00
parent 2368e794ba
commit 13c9a5e872

View File

@ -165,7 +165,7 @@ bool CxImageBMP::Decode(CxFile * hFile)
int32_t imagesize=4*head.biHeight*head.biWidth;
uint8_t* buff32=(uint8_t*)malloc(imagesize);
if (buff32){
hFile->Read(buff32, imagesize,1,GetDIB(),GetDIBLimit()); // read in the pixels
hFile->Read(buff32, imagesize,1); // read in the pixels
#if CXIMAGE_SUPPORT_ALPHA
if (dwCompression == BI_RGB){