comctl32: Hack for imagelist width greater than 2^16 (bug #3573)
Mike McCormack
mike at codeweavers.com
Tue Oct 24 04:11:30 CDT 2006
---
This hack is for bug #3573. I don't expect it to be applied to Wine,
but perhaps it will give somebody some insight into solving the bug.
WinRAR calls ImageList create and asks for an ImageList for 256 images,
*expandable* to 2048. It doesn't actually use 2048 images:
ImageList_Create (16 16 0x21 256 2048)
2048*256 is a bitmap wider than X.org wants, so it fails with a BadAlloc
error.
The correct solution is to rewrite the imagelist code to either
1) Allocate the bitmap on demand
or
2) Store images in separate DIB sections.
Mike
dlls/comctl32/imagelist.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfb1eaf9fe81f431e3ad1ad28df27c4f0aa1e5e5.diff
Type: text/x-patch
Size: 1517 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061024/74f2b668/bfb1eaf9fe81f431e3ad1ad28df27c4f0aa1e5e5.bin
More information about the wine-patches
mailing list