Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
ac8c6f29
Commit
ac8c6f29
authored
14 years ago
by
Damjan Jovanovic
Committed by
Alexandre Julliard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
winex11.drv: Use a Wine list to store XDnD data.
parent
2464733e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winex11.drv/xdnd.c
+13
-16
13 additions, 16 deletions
dlls/winex11.drv/xdnd.c
with
13 additions
and
16 deletions
dlls/winex11.drv/xdnd.c
+
13
−
16
View file @
ac8c6f29
...
...
@@ -39,6 +39,7 @@
#include
"wine/unicode.h"
#include
"wine/debug.h"
#include
"wine/list.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
xdnd
);
...
...
@@ -52,10 +53,10 @@ typedef struct tagXDNDDATA
Atom
cf_xdnd
;
void
*
data
;
unsigned
int
size
;
struct
tagXDNDDATA
*
next
;
struct
list
entry
;
}
XDNDDATA
,
*
LPXDNDDATA
;
static
LPXDNDDATA
XDNDData
=
NULL
;
static
struct
list
xdndData
=
LIST_INIT
(
xdndData
)
;
static
POINT
XDNDxy
=
{
0
,
0
};
static
void
X11DRV_XDND_InsertXDNDData
(
int
property
,
int
format
,
void
*
data
,
unsigned
int
len
);
...
...
@@ -316,12 +317,11 @@ static void X11DRV_XDND_InsertXDNDData(int property, int format, void* data, uns
if
(
current
)
{
EnterCriticalSection
(
&
xdnd_cs
);
current
->
next
=
XDNDData
;
current
->
cf_xdnd
=
property
;
current
->
cf_win
=
format
;
current
->
data
=
data
;
current
->
size
=
len
;
XDND
Data
=
current
;
list_add_tail
(
&
xdnd
Data
,
&
current
->
entry
)
;
LeaveCriticalSection
(
&
xdnd_cs
);
}
}
...
...
@@ -484,21 +484,22 @@ static int X11DRV_XDND_DeconstructTextHTML(int property, void* data, int len)
*/
static
void
X11DRV_XDND_SendDropFiles
(
HWND
hwnd
)
{
LPXDNDDATA
current
;
LPXDNDDATA
current
=
NULL
;
BOOL
found
=
FALSE
;
EnterCriticalSection
(
&
xdnd_cs
);
current
=
XDNDData
;
/* Find CF_HDROP type if any */
while
(
current
!=
NULL
)
LIST_FOR_EACH_ENTRY
(
current
,
&
xdndData
,
XDNDDATA
,
entry
)
{
if
(
current
->
cf_win
==
CF_HDROP
)
{
found
=
TRUE
;
break
;
current
=
current
->
next
;
}
}
if
(
current
!=
NULL
)
if
(
found
)
{
DROPFILES
*
lpDrop
=
current
->
data
;
...
...
@@ -530,17 +531,13 @@ static void X11DRV_XDND_FreeDragDropOp(void)
EnterCriticalSection
(
&
xdnd_cs
);
current
=
XDNDData
;
/** Free data cache */
while
(
current
!=
NULL
)
LIST_FOR_EACH_ENTRY_SAFE
(
current
,
next
,
&
xdndData
,
XDNDDATA
,
entry
)
{
next
=
current
->
next
;
list_remove
(
&
current
->
entry
)
;
HeapFree
(
GetProcessHeap
(),
0
,
current
);
current
=
next
;
}
XDNDData
=
NULL
;
XDNDxy
.
x
=
XDNDxy
.
y
=
0
;
LeaveCriticalSection
(
&
xdnd_cs
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment