Commit 35180d36 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

user32/tests: Trace GetLastError() when OpenClipboard() fails in edit.

parent 764e7d08
...@@ -2187,7 +2187,7 @@ static void test_espassword(void) ...@@ -2187,7 +2187,7 @@ static void test_espassword(void)
ok(strcmp(buffer, password) == 0, "expected %s, got %s\n", password, buffer); ok(strcmp(buffer, password) == 0, "expected %s, got %s\n", password, buffer);
r = OpenClipboard(hwEdit); 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(); r = EmptyClipboard();
ok(r == TRUE, "expected %d, got %d\n", TRUE, r); ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
r = CloseClipboard(); r = CloseClipboard();
...@@ -3190,7 +3190,7 @@ static void test_paste(void) ...@@ -3190,7 +3190,7 @@ static void test_paste(void)
GlobalUnlock(hmem); GlobalUnlock(hmem);
r = OpenClipboard(hEdit); 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(); r = EmptyClipboard();
ok(r == TRUE, "expected %d, got %d\n", TRUE, r); ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
hmem_ret = SetClipboardData(CF_TEXT, hmem); hmem_ret = SetClipboardData(CF_TEXT, hmem);
...@@ -3213,7 +3213,7 @@ static void test_paste(void) ...@@ -3213,7 +3213,7 @@ static void test_paste(void)
GlobalUnlock(hmem); GlobalUnlock(hmem);
r = OpenClipboard(hEdit); 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(); r = EmptyClipboard();
ok(r == TRUE, "expected %d, got %d\n", TRUE, r); ok(r == TRUE, "expected %d, got %d\n", TRUE, r);
hmem_ret = SetClipboardData(CF_TEXT, hmem); hmem_ret = SetClipboardData(CF_TEXT, hmem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment