Marcus Meissner : user32/tests: Check GetClipboardFormatName length.
Alexandre Julliard
julliard at winehq.org
Mon Nov 6 14:37:36 CST 2017
Module: wine
Branch: master
Commit: 77f4c20af31edb1e1786417912d915e12aebbe3f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=77f4c20af31edb1e1786417912d915e12aebbe3f
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun Nov 5 22:58:51 2017 +0100
user32/tests: Check GetClipboardFormatName length.
Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/clipboard.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c
index 8391ea0..aa3bd04 100644
--- a/dlls/user32/tests/clipboard.c
+++ b/dlls/user32/tests/clipboard.c
@@ -385,6 +385,9 @@ static void test_RegisterClipboardFormatA(void)
ok(len == lstrlenA("my_cool_clipboard_format"), "wrong format name length %d\n", len);
ok(!lstrcmpA(buf, "my_cool_clipboard_format"), "wrong format name \"%s\"\n", buf);
+ len = GetClipboardFormatNameA(format_id, NULL, 0);
+ ok(len == 0, "wrong format name length %d\n", len);
+
lstrcpyA(buf, "foo");
SetLastError(0xdeadbeef);
len = GetAtomNameA((ATOM)format_id, buf, 256);
More information about the wine-cvs
mailing list