winex11.drv: Don't memcpy() over the DROPFILES point just after setting it.
This commit is contained in:
parent
04d8b325bf
commit
f2f8d187e4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue