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
9f6fd0e4
Commit
9f6fd0e4
authored
Feb 23, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Feb 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Release IDropTarget when the mouse leaves.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f2530ca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
ole2.c
dlls/ole32/ole2.c
+5
-10
No files found.
dlls/ole32/ole2.c
View file @
9f6fd0e4
...
...
@@ -2264,7 +2264,12 @@ static void OLEDD_TrackStateChange(TrackerWindowInfo* trackerInfo)
* the new one.
*/
if
(
trackerInfo
->
curDragTarget
)
{
IDropTarget_DragLeave
(
trackerInfo
->
curDragTarget
);
IDropTarget_Release
(
trackerInfo
->
curDragTarget
);
trackerInfo
->
curDragTarget
=
NULL
;
trackerInfo
->
curTargetHWND
=
NULL
;
}
/*
* Make sure we're hovering over a window.
...
...
@@ -2283,7 +2288,6 @@ static void OLEDD_TrackStateChange(TrackerWindowInfo* trackerInfo)
if
(
next_target_wnd
)
hwndNewTarget
=
next_target_wnd
;
if
(
trackerInfo
->
curDragTarget
)
IDropTarget_Release
(
trackerInfo
->
curDragTarget
);
trackerInfo
->
curDragTarget
=
get_droptarget_pointer
(
hwndNewTarget
);
/*
...
...
@@ -2307,15 +2311,6 @@ static void OLEDD_TrackStateChange(TrackerWindowInfo* trackerInfo)
}
}
}
else
{
/*
* The mouse is not over a window so we don't track anything.
*/
trackerInfo
->
curTargetHWND
=
0
;
if
(
trackerInfo
->
curDragTarget
)
IDropTarget_Release
(
trackerInfo
->
curDragTarget
);
trackerInfo
->
curDragTarget
=
0
;
}
}
give_feedback
(
trackerInfo
);
...
...
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