Regression: Winrar fails to start

Vitaliy Margolen wine-devel at kievinfo.com
Fri Nov 11 00:52:04 CST 2005


Thursday, November 10, 2005, 2:59:02 PM, Robert Shearman wrote:
> wino at piments.com wrote:

>> It seems to be that WinRAR crashes after calling:
>> ImageList_Create(16,16,ILC_COLOR32|ILC_MASK,256,2048)
>> to create the list of icons for ListView control. Wine translates
>> this ImageList_Create to CreateBitmapIndirect 36864x16 and then
>> cannot handle 36864 parameter. If it is true, I think, it should be
>> fixed in Wine. I cannot find any errors in WinRAR ImageList_Create call.
> Wine isn't really doing anything wrong, so there is nothing to be fixed.
> However, it seems that image lists have a feature of somwhat-lazy 
> initialisation - they can an initial image count and a max image count. 
> It seems we could use this feature to only allocate the initial image 
> count on creation and allocate up to the maximum if needed when more 
> than the initial images are added.
The real fix would be is to store images in the image list the same way native
does it (4 images in a row, growing down). Wine stores them flat (n x 1).

Vitaliy








More information about the wine-devel mailing list