Shu Yokoyama : winex11: Fix HRESULT handling in XdndPosition.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 23 11:24:21 CST 2016
Module: wine
Branch: master
Commit: 5ccf039fc72e86674794b4441253bce04ceff616
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ccf039fc72e86674794b4441253bce04ceff616
Author: Shu Yokoyama <yokoyama at graco.c.u-tokyo.ac.jp>
Date: Tue Feb 23 08:02:25 2016 +0900
winex11: Fix HRESULT handling in XdndPosition.
Signed-off-by: Shu Yokoyama <yokoyama at graco.c.u-tokyo.ac.jp>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winex11.drv/xdnd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/xdnd.c b/dlls/winex11.drv/xdnd.c
index 8b2c582..c83caea 100644
--- a/dlls/winex11.drv/xdnd.c
+++ b/dlls/winex11.drv/xdnd.c
@@ -328,7 +328,7 @@ void X11DRV_XDND_PositionEvent( HWND hWnd, XClientMessageEvent *event )
if (dropTarget)
{
hr = IDropTarget_DragOver(dropTarget, MK_LBUTTON, pointl, &effect);
- if (hr != S_OK)
+ if (hr == S_OK)
XDNDDropEffect = effect;
else
WARN("IDropTarget_DragOver failed, error 0x%08X\n", hr);
More information about the wine-cvs
mailing list