From: Zhiyi Zhang <zzhang@codeweavers.com> --- dlls/comctl32/tests/animate.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/dlls/comctl32/tests/animate.c b/dlls/comctl32/tests/animate.c index ad7e16ace65..0b9c99fc0b8 100644 --- a/dlls/comctl32/tests/animate.c +++ b/dlls/comctl32/tests/animate.c @@ -150,6 +150,25 @@ static void test_play(void) ok(res != 0, "Load AVI resource failed\n"); res = SendMessageA(hAnimateWnd, ACM_PLAY, (WPARAM) -1, MAKELONG(0, -1)); ok(res != 0, "Play should have worked\n"); + /* Test ACM_OPEN after playing an animation */ + res = SendMessageA(hAnimateWnd, ACM_OPENA, 0, 0); + todo_wine + ok(res == 0, "ACM_OPENA with a NULL lparam while playing should return 0\n"); + destroy_animate(); + + /* Test ACM_OPEN after opening an animation */ + create_animate(0, 0); + res = SendMessageA(hAnimateWnd, ACM_OPENA, (WPARAM)shell32, MAKEINTRESOURCE(SEARCHING_AVI_INDEX)); + ok(res != 0, "Load AVI resource failed\n"); + res = SendMessageA(hAnimateWnd, ACM_OPENA, 0, 0); + todo_wine + ok(res == 0, "ACM_OPENA with a NULL lparam should return 0\n"); + destroy_animate(); + + /* Test ACM_OPEN without opening an animation */ + create_animate(0, 0); + res = SendMessageA(hAnimateWnd, ACM_OPENA, 0, 0); + ok(res == 0, "ACM_OPENA with a NULL lparam should return 0\n"); destroy_animate(); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10086