Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
35f6b32c
Commit
35f6b32c
authored
Jun 09, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXproperty.c:add debug output
parent
6cdddadf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
NXproperty.c
nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
+24
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
View file @
35f6b32c
...
...
@@ -88,6 +88,11 @@ typedef struct
nxagentWMStateRec
;
#endif
#define PANIC
#define WARNING
#undef TEST
#undef DEBUG
int
ProcChangeProperty
(
ClientPtr
client
)
{
...
...
@@ -563,15 +568,25 @@ GetWindowProperty(pWin, property, longOffset, longLength, delete,
unsigned
long
n
,
len
,
ind
;
if
(
!
pWin
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: invalid window
\n
"
,
__func__
);
#endif
return
BadWindow
;
}
if
(
!
ValidAtom
(
property
))
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: invalid atom [%d]
\n
"
,
__func__
,
property
);
#endif
return
(
BadAtom
);
}
if
((
type
!=
AnyPropertyType
)
&&
!
ValidAtom
(
type
))
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: invalid type [%d]
\n
"
,
__func__
,
type
);
#endif
return
(
BadAtom
);
}
...
...
@@ -588,7 +603,12 @@ GetWindowProperty(pWin, property, longOffset, longLength, delete,
if
(
!
pProp
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: property not found [%d]
\n
"
,
__func__
,
property
);
#endif
return
(
BadAtom
);
}
/* If the request type and actual type don't match. Return the
property information, but not the data. */
...
...
@@ -615,6 +635,9 @@ GetWindowProperty(pWin, property, longOffset, longLength, delete,
if
(
n
<
ind
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: negative property len
\n
"
,
__func__
);
#endif
return
BadValue
;
}
...
...
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