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:
parent
b32e8c678b
commit
77f4c20af3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user