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
300b2311
Commit
300b2311
authored
Jun 18, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Jun 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Cope with apps which return multiple DROPEFFECTs from…
winemac: Cope with apps which return multiple DROPEFFECTs from IDropTarget::DragEnter() and DragOver().
parent
f208e9ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
dragdrop.c
dlls/winemac.drv/dragdrop.c
+5
-6
No files found.
dlls/winemac.drv/dragdrop.c
View file @
300b2311
...
...
@@ -307,12 +307,11 @@ static DWORD drag_operations_to_dropeffects(uint32_t ops)
*/
static
uint32_t
dropeffect_to_drag_operation
(
DWORD
effect
,
uint32_t
ops
)
{
switch
(
effect
)
{
case
DROPEFFECT_COPY
:
return
(
ops
&
DRAG_OP_COPY
)
?
DRAG_OP_COPY
:
DRAG_OP_GENERIC
;
case
DROPEFFECT_MOVE
:
return
DRAG_OP_MOVE
;
case
DROPEFFECT_LINK
:
return
(
ops
&
DRAG_OP_LINK
)
?
DRAG_OP_LINK
:
DRAG_OP_GENERIC
;
}
if
(
effect
&
DROPEFFECT_LINK
&&
ops
&
DRAG_OP_LINK
)
return
DRAG_OP_LINK
;
if
(
effect
&
DROPEFFECT_COPY
&&
ops
&
DRAG_OP_COPY
)
return
DRAG_OP_COPY
;
if
(
effect
&
DROPEFFECT_MOVE
&&
ops
&
DRAG_OP_MOVE
)
return
DRAG_OP_MOVE
;
if
(
effect
&
DROPEFFECT_LINK
&&
ops
&
DRAG_OP_GENERIC
)
return
DRAG_OP_GENERIC
;
if
(
effect
&
DROPEFFECT_COPY
&&
ops
&
DRAG_OP_GENERIC
)
return
DRAG_OP_GENERIC
;
return
DRAG_OP_NONE
;
}
...
...
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