[PATCH 3/8] gdi32: Update biSizeImage when uncompressing the RLE bitmap.
Huw Davies
huw at codeweavers.com
Mon Feb 13 08:08:00 CST 2017
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/gdi32/dib.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c
index 0d558b0..f071bbf 100644
--- a/dlls/gdi32/dib.c
+++ b/dlls/gdi32/dib.c
@@ -316,7 +316,7 @@ static void *get_pixel_ptr( const BITMAPINFO *info, void *bits, int x, int y )
return (char *)bits + y * get_dib_stride( width, bpp ) + x * bpp / 8;
}
-static BOOL build_rle_bitmap( const BITMAPINFO *info, struct gdi_image_bits *bits, HRGN *clip )
+static BOOL build_rle_bitmap( BITMAPINFO *info, struct gdi_image_bits *bits, HRGN *clip )
{
DWORD i = 0;
int left, right;
@@ -449,6 +449,7 @@ done:
bits->ptr = out_bits;
bits->is_copy = TRUE;
bits->free = free_heap_bits;
+ info->bmiHeader.biSizeImage = get_dib_image_size( info );
return TRUE;
--
2.10.2
More information about the wine-patches
mailing list