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

Alexandre Julliard julliard at winehq.org
Tue Mar 31 12:19:23 CDT 2009


Module: wine
Branch: master
Commit: 5492fd2b0d062586e848373238827e0f12f86c83
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5492fd2b0d062586e848373238827e0f12f86c83

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Mar 31 10:11:46 2009 +0100

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

---

 dlls/ole32/tests/clipboard.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/ole32/tests/clipboard.c b/dlls/ole32/tests/clipboard.c
index 7e18549..8b16a5f 100644
--- a/dlls/ole32/tests/clipboard.c
+++ b/dlls/ole32/tests/clipboard.c
@@ -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);




More information about the wine-cvs mailing list