mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
gdi32: Don't use biSizeImage for a BI_BITFIELDS dib.
This commit is contained in:
parent
d84ea74ec8
commit
67a5f256c4
@ -61,7 +61,7 @@ static HGLOBAL16 dib_copy(const BITMAPINFO *info, UINT coloruse)
|
||||
HGLOBAL16 hmem;
|
||||
INT size;
|
||||
|
||||
if (info->bmiHeader.biCompression)
|
||||
if (info->bmiHeader.biCompression != BI_RGB && info->bmiHeader.biCompression != BI_BITFIELDS)
|
||||
size = info->bmiHeader.biSizeImage;
|
||||
else
|
||||
size = DIB_GetDIBImageBytes(info->bmiHeader.biWidth,
|
||||
|
Loading…
Reference in New Issue
Block a user