Huw Davies : gdi32: Update biSizeImage when uncompressing the RLE bitmap.

Alexandre Julliard julliard at winehq.org
Mon Feb 13 15:24:40 CST 2017


Module: wine
Branch: master
Commit: 8c2374ab08bd4869f91d03069ee025600ceca64b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8c2374ab08bd4869f91d03069ee025600ceca64b

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Feb 13 14:08:00 2017 +0000

gdi32: Update biSizeImage when uncompressing the RLE bitmap.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
 




More information about the wine-cvs mailing list