Commit c648dcf6 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 18d413bb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment