winex11.drv: Only update drop effect if IDropTarget::DragOver returned S_OK.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2015-12-21 11:21:22 +01:00 committed by Alexandre Julliard
parent fd4dbf0519
commit c96589421a
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ void X11DRV_XDND_PositionEvent( HWND hWnd, XClientMessageEvent *event )
if (dropTarget)
{
hr = IDropTarget_DragOver(dropTarget, MK_LBUTTON, pointl, &effect);
if (SUCCEEDED(hr))
if (hr != S_OK)
XDNDDropEffect = effect;
else
WARN("IDropTarget_DragOver failed, error 0x%08X\n", hr);