projects
/
wine
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4180054
)
comctl32: Take the total bitmap size into account when reading a bottom-up image...
author
Alexandre Julliard
<julliard@winehq.org>
Mon, 21 Nov 2011 10:42:48 +0000
(11:42 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 21 Nov 2011 10:42:48 +0000
(11:42 +0100)
dlls/comctl32/imagelist.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/comctl32/imagelist.c
b/dlls/comctl32/imagelist.c
index
c32cb0b
..
ca6579f
100644
(file)
--- a/
dlls/comctl32/imagelist.c
+++ b/
dlls/comctl32/imagelist.c
@@
-2216,8
+2216,8
@@
HIMAGELIST WINAPI ImageList_Read (LPSTREAM pstm)
if (image_info->bmiHeader.biHeight > 0) /* bottom-up */
{
- ptr +=
(imagelist_height( ilHead.cCurImage ) - 1) *
stride;
- mask_ptr += (image
list_height( ilHead.cCurImage ) - 1) * stride
/ 8;
+ ptr +=
image_info->bmiHeader.biHeight * image_info->bmiHeader.biWidth -
stride;
+ mask_ptr += (image
_info->bmiHeader.biHeight * image_info->bmiHeader.biWidth - stride)
/ 8;
stride = -stride;
image_info->bmiHeader.biHeight = himl->cy;
}