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
6871341c
Commit
6871341c
authored
Aug 16, 2010
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Aug 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Filter out all CF_* formats when CF_HDROP is present.
parent
ac8c6f29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
xdnd.c
dlls/winex11.drv/xdnd.c
+27
-0
No files found.
dlls/winex11.drv/xdnd.c
View file @
6871341c
...
...
@@ -257,6 +257,8 @@ static void X11DRV_XDND_ResolveProperty(Display *display, Window xwin, Time tm,
unsigned
long
bytesret
,
icount
;
int
entries
=
0
;
unsigned
char
*
data
=
NULL
;
XDNDDATA
*
current
,
*
next
;
BOOL
haveHDROP
=
FALSE
;
TRACE
(
"count(%ld)
\n
"
,
*
count
);
...
...
@@ -301,6 +303,31 @@ static void X11DRV_XDND_ResolveProperty(Display *display, Window xwin, Time tm,
wine_tsx11_unlock
();
}
/* On Windows when there is a CF_HDROP, there are no other CF_ formats.
* foobar2000 relies on this (spaces -> %20's without it).
*/
LIST_FOR_EACH_ENTRY
(
current
,
&
xdndData
,
XDNDDATA
,
entry
)
{
if
(
current
->
cf_win
==
CF_HDROP
)
{
haveHDROP
=
TRUE
;
break
;
}
}
if
(
haveHDROP
)
{
LIST_FOR_EACH_ENTRY_SAFE
(
current
,
next
,
&
xdndData
,
XDNDDATA
,
entry
)
{
if
(
current
->
cf_win
!=
CF_HDROP
&&
current
->
cf_win
<
CF_MAX
)
{
list_remove
(
&
current
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
current
->
data
);
HeapFree
(
GetProcessHeap
(),
0
,
current
);
--
entries
;
}
}
}
*
count
=
entries
;
}
...
...
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