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
7d013ed8
Commit
7d013ed8
authored
Aug 20, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Work around a false positive gcc warning.
parent
ec3b7738
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
clipboard.c
dlls/winex11.drv/clipboard.c
+4
-5
No files found.
dlls/winex11.drv/clipboard.c
View file @
7d013ed8
...
...
@@ -1850,7 +1850,7 @@ static BOOL X11DRV_CLIPBOARD_GetProperty(Display *display, Window w, Atom prop,
{
int
aformat
;
unsigned
long
pos
=
0
,
nitems
,
remain
,
count
;
unsigned
char
*
val
=
NULL
,
*
buffer
;
unsigned
char
*
val
=
NULL
,
*
new_val
,
*
buffer
;
for
(;;)
{
...
...
@@ -1863,15 +1863,13 @@ static BOOL X11DRV_CLIPBOARD_GetProperty(Display *display, Window w, Atom prop,
}
count
=
get_property_size
(
aformat
,
nitems
);
*
data
=
realloc
(
val
,
pos
*
sizeof
(
int
)
+
count
+
1
);
if
(
!*
data
)
if
(
!
(
new_val
=
realloc
(
val
,
pos
*
sizeof
(
int
)
+
count
+
1
)))
{
XFree
(
buffer
);
free
(
val
);
return
FALSE
;
}
val
=
*
data
;
val
=
new_val
;
memcpy
(
(
int
*
)
val
+
pos
,
buffer
,
count
);
XFree
(
buffer
);
if
(
!
remain
)
...
...
@@ -1889,6 +1887,7 @@ static BOOL X11DRV_CLIPBOARD_GetProperty(Display *display, Window w, Atom prop,
/* Delete the property on the window now that we are done
* This will send a PropertyNotify event to the selection owner. */
XDeleteProperty
(
display
,
w
,
prop
);
*
data
=
val
;
return
TRUE
;
}
...
...
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