March 19, 2026
2:50 p.m.
Nikolay Sivov (@nsivov) commented about dlls/comctl32/imagelist.c:
grow = 256; }
+ /* Some applications mistakenly use a very large initial image count. On Windows, there is no + * limit of how large a imagelist can be. This makes sure that GDI handle limit will be reached + * before hitting the imagelist limit */ + initial = min(initial, GDI_MAX_HANDLE_COUNT); + himl->cx = cx;
What does image count have to do with gdi handle count? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10382#note_132821