Michael Stefaniuc : comctl32/tests: Check the correct last error code.
Alexandre Julliard
julliard at winehq.org
Wed Apr 19 14:49:38 CDT 2017
Module: wine
Branch: master
Commit: c7c8d24bf9ae0be03f73d1a9ff8225bfd17d6394
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c7c8d24bf9ae0be03f73d1a9ff8225bfd17d6394
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed Apr 19 01:24:15 2017 +0200
comctl32/tests: Check the correct last error code.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 c64dbfa..fab345b 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);
More information about the wine-cvs
mailing list