Damjan Jovanovic : winex11.drv: Fix a GlobalLock() reference leak.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jul 18 14:20:23 CDT 2014
Module: wine
Branch: master
Commit: 04d8b325bf266a53ddf19c2fc4df05dd6b3c189d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=04d8b325bf266a53ddf19c2fc4df05dd6b3c189d
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Thu Jul 17 21:08:02 2014 +0200
winex11.drv: Fix a GlobalLock() reference leak.
---
dlls/winex11.drv/xdnd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/winex11.drv/xdnd.c b/dlls/winex11.drv/xdnd.c
index 3390dad..abaf4b4 100644
--- a/dlls/winex11.drv/xdnd.c
+++ b/dlls/winex11.drv/xdnd.c
@@ -569,6 +569,7 @@ static void X11DRV_XDND_SendDropFiles(HWND hwnd)
lpDrop->pt.x = XDNDxy.x;
lpDrop->pt.y = XDNDxy.y;
memcpy(lpDrop, GlobalLock(current->contents), GlobalSize(current->contents));
+ GlobalUnlock(current->contents);
TRACE("Sending WM_DROPFILES: hWnd(0x%p) %p(%s)\n", hwnd,
((char*)lpDrop) + lpDrop->pFiles, debugstr_w((WCHAR*)(((char*)lpDrop) + lpDrop->pFiles)));
GlobalUnlock(dropHandle);
More information about the wine-cvs
mailing list