[PATCH 1/3] winex11.drv: fix a WM_DROPFILES memory ownership ambiguity (try 2)

Damjan Jovanovic damjan.jov at gmail.com
Mon May 5 20:02:45 CDT 2014

WM_DROPFILES receivers need to free the HDROP they are given with
DragFinish(), which calls GlobalFree(). So give them a private HDROP,
instead of letting them share winex11.drv's own with ambiguous
semantics. Additionally free this HDROP ourselves if PostMessageW()

Try 2 should apply cleanly.

Damjan Jovanovic

 dlls/winex11.drv/xdnd.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winex11.drv-fix-a-WM_DROPFILES-memory-leak.txt
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140506/54197945/attachment.bin>

More information about the wine-patches mailing list