user32/tests: Check GetClipboardFormatName length.

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2017-11-05 22:58:51 +01:00 committed by Alexandre Julliard
parent b32e8c678b
commit 77f4c20af3

View File

@ -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);