winex11.drv: Ignore .dwAspect in FORMATETC during XDnD.

Some applications pass FORMATETC.dwAspect=0 to
IDataObject_[Query]GetData() during drag and drop, which
is not a valid DVASPECT_* value. Tests show that Windows
Explorer completely ignores .dwAspect for CF_HDROP when
it is the drag source, treating all values as
DVASPECT_CONTENT instead. Do the same.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43368
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Damjan Jovanovic 2019-12-26 14:30:07 +02:00 committed by Alexandre Julliard
parent c9eed1e866
commit 523fb9496c
1 changed files with 3 additions and 5 deletions

View File

@ -827,11 +827,9 @@ static HRESULT WINAPI XDNDDATAOBJECT_QueryGetData(IDataObject *dataObject,
FIXME("only HGLOBAL medium types supported right now\n");
return DV_E_TYMED;
}
if (formatEtc->dwAspect != DVASPECT_CONTENT)
{
FIXME("only the content aspect is supported right now\n");
return E_NOTIMPL;
}
/* Windows Explorer ignores .dwAspect and .lindex for CF_HDROP,
* and we have no way to implement them on XDnD anyway, so ignore them too.
*/
LIST_FOR_EACH_ENTRY(current, &xdndData, XDNDDATA, entry)
{