From c7c8d24bf9ae0be03f73d1a9ff8225bfd17d6394 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 19 Apr 2017 01:24:15 +0200 Subject: [PATCH] comctl32/tests: Check the correct last error code. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/comctl32/tests/animate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/tests/animate.c b/dlls/comctl32/tests/animate.c index c64dbfaf73d..fab345bb47e 100644 --- a/dlls/comctl32/tests/animate.c +++ b/dlls/comctl32/tests/animate.c @@ -160,8 +160,9 @@ static void test_play(void) SetLastError(0xdeadbeef); res = SendMessageA(hAnimateWnd, ACM_PLAY, (WPARAM) -1, MAKELONG(0, -1)); + err = GetLastError(); ok(res == 0, "Play should have failed\n"); - ok(err == ERROR_RESOURCE_NAME_NOT_FOUND, "Expected 1814, got %u\n", err); + ok(err == 0xdeadbeef, "Expected 0xdeadbeef, got %u\n", err); destroy_animate(); create_animate(0, 0);