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;