winex11.drv: Reset XDNDAccepted flag if IDropTarget::DragEnter fails.

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:27 +01:00 committed by Alexandre Julliard
parent c96589421a
commit 76f7d8c7ab
1 changed files with 3 additions and 0 deletions

View File

@ -314,7 +314,10 @@ void X11DRV_XDND_PositionEvent( HWND hWnd, XClientMessageEvent *event )
TRACE("the application accepted the drop (effect = %d)\n", effect_ignore);
}
else
{
XDNDAccepted = FALSE;
WARN("IDropTarget_DragEnter failed, error 0x%08X\n", hr);
}
IDropTarget_Release(dropTarget);
}
}