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
a6a20ccc
Commit
a6a20ccc
authored
Nov 26, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Simplify XGetWindowProperty return code checks (Clang).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6790d825
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
clipboard.c
dlls/winex11.drv/clipboard.c
+3
-3
No files found.
dlls/winex11.drv/clipboard.c
View file @
a6a20ccc
...
@@ -2448,7 +2448,7 @@ static int X11DRV_CLIPBOARD_QueryAvailableData(Display *display)
...
@@ -2448,7 +2448,7 @@ static int X11DRV_CLIPBOARD_QueryAvailableData(Display *display)
/* Read the TARGETS property contents */
/* Read the TARGETS property contents */
if
(
!
XGetWindowProperty
(
display
,
xe
.
xselection
.
requestor
,
xe
.
xselection
.
property
,
if
(
!
XGetWindowProperty
(
display
,
xe
.
xselection
.
requestor
,
xe
.
xselection
.
property
,
0
,
0x3FFF
,
True
,
AnyPropertyType
/*XA_ATOM*/
,
&
atype
,
&
aformat
,
&
cSelectionTargets
,
0
,
0x3FFF
,
True
,
AnyPropertyType
/*XA_ATOM*/
,
&
atype
,
&
aformat
,
&
cSelectionTargets
,
&
remain
,
(
unsigned
char
**
)
&
targetList
)
!=
Success
)
&
remain
,
(
unsigned
char
**
)
&
targetList
))
{
{
TRACE
(
"Type %lx,Format %d,nItems %ld, Remain %ld
\n
"
,
TRACE
(
"Type %lx,Format %d,nItems %ld, Remain %ld
\n
"
,
atype
,
aformat
,
cSelectionTargets
,
remain
);
atype
,
aformat
,
cSelectionTargets
,
remain
);
...
@@ -2583,7 +2583,7 @@ static BOOL X11DRV_CLIPBOARD_GetProperty(Display *display, Window w, Atom prop,
...
@@ -2583,7 +2583,7 @@ static BOOL X11DRV_CLIPBOARD_GetProperty(Display *display, Window w, Atom prop,
for
(;;)
for
(;;)
{
{
if
(
XGetWindowProperty
(
display
,
w
,
prop
,
pos
,
INT_MAX
/
4
,
False
,
if
(
XGetWindowProperty
(
display
,
w
,
prop
,
pos
,
INT_MAX
/
4
,
False
,
AnyPropertyType
,
atype
,
&
aformat
,
&
nitems
,
&
remain
,
&
buffer
)
!=
Success
)
AnyPropertyType
,
atype
,
&
aformat
,
&
nitems
,
&
remain
,
&
buffer
))
{
{
WARN
(
"Failed to read property
\n
"
);
WARN
(
"Failed to read property
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
val
);
HeapFree
(
GetProcessHeap
(),
0
,
val
);
...
@@ -3354,7 +3354,7 @@ static Atom X11DRV_SelectionRequest_MULTIPLE( HWND hWnd, XSelectionRequestEvent
...
@@ -3354,7 +3354,7 @@ static Atom X11DRV_SelectionRequest_MULTIPLE( HWND hWnd, XSelectionRequestEvent
if
(
!
XGetWindowProperty
(
display
,
pevent
->
requestor
,
rprop
,
if
(
!
XGetWindowProperty
(
display
,
pevent
->
requestor
,
rprop
,
0
,
0x3FFF
,
False
,
AnyPropertyType
,
&
atype
,
&
aformat
,
0
,
0x3FFF
,
False
,
AnyPropertyType
,
&
atype
,
&
aformat
,
&
cTargetPropList
,
&
remain
,
&
cTargetPropList
,
&
remain
,
(
unsigned
char
**
)
&
targetPropList
)
!=
Success
)
(
unsigned
char
**
)
&
targetPropList
))
{
{
if
(
TRACE_ON
(
clipboard
))
if
(
TRACE_ON
(
clipboard
))
{
{
...
...
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