Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
934aa492
Commit
934aa492
authored
Nov 24, 2008
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Dec 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add check for XmbTextPropertyToTextList result.
parent
9ef1f0fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
clipboard.c
dlls/winex11.drv/clipboard.c
+3
-2
No files found.
dlls/winex11.drv/clipboard.c
View file @
934aa492
...
@@ -1224,7 +1224,7 @@ HANDLE X11DRV_CLIPBOARD_ImportUTF8(Display *display, Window w, Atom prop)
...
@@ -1224,7 +1224,7 @@ HANDLE X11DRV_CLIPBOARD_ImportUTF8(Display *display, Window w, Atom prop)
*/
*/
static
HANDLE
X11DRV_CLIPBOARD_ImportCompoundText
(
Display
*
display
,
Window
w
,
Atom
prop
)
static
HANDLE
X11DRV_CLIPBOARD_ImportCompoundText
(
Display
*
display
,
Window
w
,
Atom
prop
)
{
{
int
i
,
j
;
int
i
,
j
,
ret
;
char
**
srcstr
;
char
**
srcstr
;
int
count
,
lcount
;
int
count
,
lcount
;
int
srclen
,
destlen
;
int
srclen
,
destlen
;
...
@@ -1239,9 +1239,10 @@ static HANDLE X11DRV_CLIPBOARD_ImportCompoundText(Display *display, Window w, At
...
@@ -1239,9 +1239,10 @@ static HANDLE X11DRV_CLIPBOARD_ImportCompoundText(Display *display, Window w, At
txtprop
.
encoding
=
x11drv_atom
(
COMPOUND_TEXT
);
txtprop
.
encoding
=
x11drv_atom
(
COMPOUND_TEXT
);
txtprop
.
format
=
8
;
txtprop
.
format
=
8
;
wine_tsx11_lock
();
wine_tsx11_lock
();
XmbTextPropertyToTextList
(
display
,
&
txtprop
,
&
srcstr
,
&
count
);
ret
=
XmbTextPropertyToTextList
(
display
,
&
txtprop
,
&
srcstr
,
&
count
);
wine_tsx11_unlock
();
wine_tsx11_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
txtprop
.
value
);
HeapFree
(
GetProcessHeap
(),
0
,
txtprop
.
value
);
if
(
ret
!=
Success
||
!
count
)
return
0
;
TRACE
(
"Importing %d line(s)
\n
"
,
count
);
TRACE
(
"Importing %d line(s)
\n
"
,
count
);
...
...
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