mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
Indeed the count was based on the number of elements in TBBUTTON arrays; however for some of the toolbars, extra entries corresponding to separators are present, and thus the resulting number of elements is always larger than the number of actual buttons for which an image is associated. Passing this (larger) count to the InitImageList() function therefore made image insertion fail after a certain point. Now we pass an exact number of *images* instead.