Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f0a91c02
Commit
f0a91c02
authored
May 06, 2014
by
Damjan Jovanovic
Committed by
Alexandre Julliard
May 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Fix a WM_DROPFILES memory ownership ambiguity.
parent
9016d1ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
xdnd.c
dlls/winex11.drv/xdnd.c
+8
-4
No files found.
dlls/winex11.drv/xdnd.c
View file @
f0a91c02
...
...
@@ -727,17 +727,20 @@ static void X11DRV_XDND_SendDropFiles(HWND hwnd)
if
(
found
)
{
DROPFILES
*
lpDrop
=
current
->
data
;
HGLOBAL
dropHandle
=
GlobalAlloc
(
GMEM_FIXED
,
current
->
size
)
;
if
(
lpDrop
)
if
(
dropHandle
)
{
DROPFILES
*
lpDrop
=
GlobalLock
(
dropHandle
);
lpDrop
->
pt
.
x
=
XDNDxy
.
x
;
lpDrop
->
pt
.
y
=
XDNDxy
.
y
;
memcpy
(
lpDrop
,
current
->
data
,
current
->
size
);
TRACE
(
"Sending WM_DROPFILES: hWnd(0x%p) %p(%s)
\n
"
,
hwnd
,
((
char
*
)
lpDrop
)
+
lpDrop
->
pFiles
,
debugstr_w
((
WCHAR
*
)(((
char
*
)
lpDrop
)
+
lpDrop
->
pFiles
)));
GlobalUnlock
(
dropHandle
);
PostMessageW
(
hwnd
,
WM_DROPFILES
,
(
WPARAM
)
lpDrop
,
0L
);
if
(
!
PostMessageW
(
hwnd
,
WM_DROPFILES
,
(
WPARAM
)
dropHandle
,
0
))
GlobalFree
(
dropHandle
);
}
}
...
...
@@ -761,6 +764,7 @@ static void X11DRV_XDND_FreeDragDropOp(void)
LIST_FOR_EACH_ENTRY_SAFE
(
current
,
next
,
&
xdndData
,
XDNDDATA
,
entry
)
{
list_remove
(
&
current
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
current
->
data
);
HeapFree
(
GetProcessHeap
(),
0
,
current
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment