Commit 67a5f256 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Don't use biSizeImage for a BI_BITFIELDS dib.

parent d84ea74e
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment