From c648dcf61595c641cffe800348e2510b1435e4e6 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 16 Apr 2009 12:35:06 +0100 Subject: [PATCH] ole32: Try global and stream types if the requested types don't match the source. --- dlls/ole32/clipboard.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c index dde09ea4777..eaffb777853 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;