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

This commit is contained in:
Huw Davies 2009-04-16 12:35:06 +01:00 committed by Alexandre Julliard
parent 18d413bb74
commit c648dcf615
1 changed files with 3 additions and 0 deletions

View File

@ -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;