Huw Davies : ole32: Try global and stream types if the requested types don' t match the source.

Alexandre Julliard julliard at winehq.org
Thu Apr 16 14:34:52 CDT 2009


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Apr 16 12:35:06 2009 +0100

ole32: Try global and stream types if the requested types don't match the source.

---

 dlls/ole32/clipboard.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c
index dde09ea..eaffb77 100644
--- a/dlls/ole32/clipboard.c
+++ b/dlls/ole32/clipboard.c
@@ -1062,7 +1062,10 @@ static HRESULT WINAPI snapshot_GetData(IDataObject *iface, FORMATETC *fmt,
 
     entry = find_format_in_list(enum_data->entries, enum_data->count, fmt->cfFormat);
     if(entry)
+    {
         mask = fmt->tymed & entry->fmtetc.tymed;
+        if(!mask) mask = fmt->tymed & (TYMED_ISTREAM | TYMED_HGLOBAL);
+    }
     else /* non-Ole format */
         mask = fmt->tymed & TYMED_HGLOBAL;
 




More information about the wine-cvs mailing list