ole32/tests: On win9x GetClipboardData returns a new handle.

This commit is contained in:
Huw Davies 2009-03-31 10:11:46 +01:00 committed by Alexandre Julliard
parent 2c6be9521b
commit 5492fd2b0d
1 changed files with 6 additions and 2 deletions

View File

@ -746,7 +746,9 @@ static void test_set_clipboard(void)
h = SetClipboardData(cf_onemore, hblob);
ok(h == hblob, "got %p\n", h);
h = GetClipboardData(cf_onemore);
ok(h == hblob, "got %p\n", h);
ok(h == hblob ||
broken(h != NULL), /* win9x */
"got %p\n", h);
CloseClipboard();
hr = OleFlushClipboard();
@ -761,7 +763,9 @@ static void test_set_clipboard(void)
/* format should survive the flush */
OpenClipboard(NULL);
h = GetClipboardData(cf_onemore);
ok(h == hblob, "got %p\n", h);
ok(h == hblob ||
broken(h != NULL), /* win9x */
"got %p\n", h);
CloseClipboard();
test_cf_dataobject(NULL);