From: Kun Yang <yangkun@uniontech.com> Logs: Aligning with Windows behavior. Signed-off-by: Kun Yang <yangkun@uniontech.com> --- dlls/comctl32/imagelist.c | 2 +- dlls/comctl32/tests/imagelist.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index 5788bf22a53..83daacc02db 100644 --- a/dlls/comctl32/imagelist.c +++ b/dlls/comctl32/imagelist.c @@ -335,7 +335,7 @@ IMAGELIST_InternalExpandBitmaps(HIMAGELIST himl, INT nImageCount) TRACE("%p has allocated %d, max %d, grow %d images\n", himl, himl->cCurImage, himl->cMaxImage, himl->cGrow); - if (himl->cCurImage + nImageCount < himl->cMaxImage) + if (himl->cCurImage + nImageCount <= himl->cMaxImage) return; nNewCount = himl->cMaxImage + max(nImageCount, himl->cGrow) + 1; diff --git a/dlls/comctl32/tests/imagelist.c b/dlls/comctl32/tests/imagelist.c index 6c7be6a7319..ca023b63bc0 100644 --- a/dlls/comctl32/tests/imagelist.c +++ b/dlls/comctl32/tests/imagelist.c @@ -2291,7 +2291,6 @@ static void test_create_destroy(void) result = pImageList_Replace(himl, 0, hbm, NULL); ok(result == TRUE, "failed to replace bitmap 1\n"); result = pImageList_Replace(himl, 1, hbm, NULL); - todo_wine ok(result == FALSE, "succesffuly replaced bitmap 2, wrong\n"); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10059