Skip to content
Snippets Groups Projects
Commit ba21de83 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard
Browse files

winex11.drv: XDNDDropEffect stores OLE Drag&Drop effect so don't use it...

winex11.drv: XDNDDropEffect stores OLE Drag&Drop effect so don't use it WS_EX_ACCEPTFILES related drops.

Signed-off-by: default avatarPiotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 76f7d8c7
No related branches found
No related tags found
No related merge requests found
......@@ -339,12 +339,10 @@ void X11DRV_XDND_PositionEvent( HWND hWnd, XClientMessageEvent *event )
if (XDNDAccepted)
accept = 1;
else if ((GetWindowLongW( hWnd, GWL_EXSTYLE ) & WS_EX_ACCEPTFILES) &&
(effect & DROPEFFECT_COPY) &&
X11DRV_XDND_HasHDROP())
{
accept = 1;
effect = DROPEFFECT_COPY;
XDNDDropEffect = effect;
}
TRACE("action req: %ld accept(%d) at x(%d),y(%d)\n",
......@@ -432,7 +430,6 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
/* Only send WM_DROPFILES if Drop didn't succeed or DROPEFFECT_NONE was set.
* Doing both causes winamp to duplicate the dropped files (#29081) */
if ((GetWindowLongW( hWnd, GWL_EXSTYLE ) & WS_EX_ACCEPTFILES) &&
(XDNDDropEffect & DROPEFFECT_COPY) &&
X11DRV_XDND_HasHDROP())
{
HRESULT hr = X11DRV_XDND_SendDropFiles( hWnd );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment