From 67a5f256c46b0d022ac76e5302a4884cf6b11074 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 29 Jul 2008 11:49:58 +0100 Subject: [PATCH] gdi32: Don't use biSizeImage for a BI_BITFIELDS dib. --- dlls/gdi32/brush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi32/brush.c b/dlls/gdi32/brush.c index 01f69a8c599..908670e00b5 100644 --- a/dlls/gdi32/brush.c +++ b/dlls/gdi32/brush.c @@ -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,