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
4cd064ae
Commit
4cd064ae
authored
May 08, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
May 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Don't release the drop target on process uninitialisation if not revoked,…
ole32: Don't release the drop target on process uninitialisation if not revoked, just release the memory.
parent
d5c6c64b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
ole2.c
dlls/ole32/ole2.c
+6
-7
No files found.
dlls/ole32/ole2.c
View file @
4cd064ae
...
...
@@ -149,7 +149,7 @@ extern void OLEClipbrd_Initialize(void);
static
void
OLEDD_Initialize
(
void
);
static
DropTargetNode
*
OLEDD_FindDropTarget
(
HWND
hwndOfTarget
);
static
void
OLEDD_FreeDropTarget
(
DropTargetNode
*
);
static
void
OLEDD_FreeDropTarget
(
DropTargetNode
*
,
BOOL
);
static
LRESULT
WINAPI
OLEDD_DragTrackerWindowProc
(
HWND
hwnd
,
UINT
uMsg
,
...
...
@@ -355,7 +355,7 @@ HRESULT WINAPI RevokeDragDrop(
if
(
dropTargetInfo
==
NULL
)
return
DRAGDROP_E_NOTREGISTERED
;
OLEDD_FreeDropTarget
(
dropTargetInfo
);
OLEDD_FreeDropTarget
(
dropTargetInfo
,
TRUE
);
return
S_OK
;
}
...
...
@@ -1896,10 +1896,10 @@ static void OLEDD_Initialize(void)
*
* Frees the drag and drop data structure
*/
static
void
OLEDD_FreeDropTarget
(
DropTargetNode
*
dropTargetInfo
)
static
void
OLEDD_FreeDropTarget
(
DropTargetNode
*
dropTargetInfo
,
BOOL
release_drop_target
)
{
list_remove
(
&
dropTargetInfo
->
entry
);
IDropTarget_Release
(
dropTargetInfo
->
dropTarget
);
if
(
release_drop_target
)
IDropTarget_Release
(
dropTargetInfo
->
dropTarget
);
HeapFree
(
GetProcessHeap
(),
0
,
dropTargetInfo
);
}
...
...
@@ -1915,9 +1915,8 @@ void OLEDD_UnInitialize(void)
*/
while
(
!
list_empty
(
&
targetListHead
))
{
DropTargetNode
*
curNode
;
curNode
=
LIST_ENTRY
(
list_head
(
&
targetListHead
),
DropTargetNode
,
entry
);
OLEDD_FreeDropTarget
(
curNode
);
DropTargetNode
*
curNode
=
LIST_ENTRY
(
list_head
(
&
targetListHead
),
DropTargetNode
,
entry
);
OLEDD_FreeDropTarget
(
curNode
,
FALSE
);
}
}
...
...
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