March 13, 2026
9:48 a.m.
@zhiyi I fixed my patch. I found another bug. By using ImageList_Replace to test cMaxImage=1, it do work successful on Windows. But it works different on Wine. Windows comctl32 expand cMaxImage only when exceeded. That means if cMaxImage=1, only 1 image was added into the list. It won't grow. But in wine cMaxImage grows to 6 when only 1 image was added into the list which space is enouph. I think the boundary conditions are inaccurate, so I made another patch. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10059#note_132167