Francois Gouget : user32/tests: Trace GetLastError() when OpenClipboard() fails in edit.
Alexandre Julliard
julliard at winehq.org
Fri May 28 16:22:28 CDT 2021
Module: wine
Branch: master
Commit: 35180d368a94156cb77b09560b24d3af428b988b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=35180d368a94156cb77b09560b24d3af428b988b
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Fri May 28 17:48:20 2021 +0200
user32/tests: Trace GetLastError() when OpenClipboard() fails in edit.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/edit.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/tests/edit.c b/dlls/user32/tests/edit.c
index 34bb1e5a76e..6edec12e03b 100644
--- a/dlls/user32/tests/edit.c
+++ b/dlls/user32/tests/edit.c
@@ -2187,7 +2187,7 @@ static void test_espassword(void)
ok(strcmp(buffer, password) == 0, "expected %s, got %s\n", password, buffer);
r = OpenClipboard(hwEdit);
- ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
+ ok(r == TRUE, "expected %d, got %d le=%u\n", TRUE, r, GetLastError());
r = EmptyClipboard();
ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
r = CloseClipboard();
@@ -3190,7 +3190,7 @@ static void test_paste(void)
GlobalUnlock(hmem);
r = OpenClipboard(hEdit);
- ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
+ ok(r == TRUE, "expected %d, got %d le=%u\n", TRUE, r, GetLastError());
r = EmptyClipboard();
ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
hmem_ret = SetClipboardData(CF_TEXT, hmem);
@@ -3213,7 +3213,7 @@ static void test_paste(void)
GlobalUnlock(hmem);
r = OpenClipboard(hEdit);
- ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
+ ok(r == TRUE, "expected %d, got %d le=%u\n", TRUE, r, GetLastError());
r = EmptyClipboard();
ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
hmem_ret = SetClipboardData(CF_TEXT, hmem);
More information about the wine-cvs
mailing list