comctl32: Hack for imagelist width greater than 2^16 (bug #3573)

Robert Shearman rob at codeweavers.com
Tue Oct 24 06:13:26 CDT 2006


Mike McCormack wrote:
> ---
>
> 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.

or 3) Store the images in an M/N x N format instead of an M x 1 format.

-- 
Rob Shearman




More information about the wine-devel mailing list