ole32: Try global and stream types if the requested types don't match the source.
This commit is contained in:
parent
18d413bb74
commit
c648dcf615
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue