winex11.drv: Don't memcpy() over the DROPFILES point just after setting it.

This commit is contained in:
Damjan Jovanovic 2014-07-17 21:08:12 +02:00 committed by Alexandre Julliard
parent 04d8b325bf
commit f2f8d187e4
1 changed files with 2 additions and 2 deletions

View File

@ -566,10 +566,10 @@ static void X11DRV_XDND_SendDropFiles(HWND hwnd)
if (dropHandle)
{
DROPFILES *lpDrop = GlobalLock(dropHandle);
lpDrop->pt.x = XDNDxy.x;
lpDrop->pt.y = XDNDxy.y;
memcpy(lpDrop, GlobalLock(current->contents), GlobalSize(current->contents));
GlobalUnlock(current->contents);
lpDrop->pt.x = XDNDxy.x;
lpDrop->pt.y = XDNDxy.y;
TRACE("Sending WM_DROPFILES: hWnd(0x%p) %p(%s)\n", hwnd,
((char*)lpDrop) + lpDrop->pFiles, debugstr_w((WCHAR*)(((char*)lpDrop) + lpDrop->pFiles)));
GlobalUnlock(dropHandle);