Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
José Expósito
xf86-input-libinput
Commits
b3e65904
Commit
b3e65904
authored
Nov 17, 2021
by
José Expósito
Browse files
Make XIPropertyValuePtr verification consistent
Signed-off-by:
José Expósito
<
jose.exposito89@gmail.com
>
parent
75cc8751
Pipeline
#447962
passed with stages
in 1 minute and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/xf86libinput.c
View file @
b3e65904
...
...
@@ -4435,7 +4435,7 @@ LibinputSetPropertyScrollButtonLock(DeviceIntPtr dev,
struct
xf86libinput
*
driver_data
=
pInfo
->
private
;
BOOL
enabled
;
if
(
val
->
format
!=
8
||
val
->
type
!=
XA_INTEGER
||
val
->
size
!=
1
)
if
(
val
->
format
!=
8
||
val
->
size
!=
1
||
val
->
type
!=
XA_INTEGER
)
return
BadMatch
;
enabled
=
*
(
BOOL
*
)
val
->
data
;
...
...
@@ -4644,7 +4644,7 @@ LibinputSetPropertyHorizScroll(DeviceIntPtr dev,
struct
xf86libinput
*
driver_data
=
pInfo
->
private
;
BOOL
enabled
;
if
(
val
->
format
!=
8
||
val
->
type
!=
XA_INTEGER
||
val
->
size
!=
1
)
if
(
val
->
format
!=
8
||
val
->
size
!=
1
||
val
->
type
!=
XA_INTEGER
)
return
BadMatch
;
enabled
=
*
(
BOOL
*
)
val
->
data
;
...
...
@@ -4671,7 +4671,7 @@ LibinputSetPropertyScrollPixelDistance(DeviceIntPtr dev,
struct
xf86libinput
*
driver_data
=
pInfo
->
private
;
uint32_t
dist
;
if
(
val
->
format
!=
32
||
val
->
type
!=
XA_CARDINAL
||
val
->
size
!=
1
)
if
(
val
->
format
!=
32
||
val
->
size
!=
1
||
val
->
type
!=
XA_CARDINAL
)
return
BadMatch
;
dist
=
*
(
BOOL
*
)
val
->
data
;
...
...
Write
Preview
Supports
Markdown
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