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
- Allocate the bitmap on demand
or
- 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.