mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
st/oxr: Accept nonnull subactionPaths when countSubactionPaths is 0
It's not clear that this is forbidden, and it can make the caller's life a little easier.
This commit is contained in:
parent
286a826ff7
commit
41ad2b872c
|
@ -105,11 +105,6 @@ extern "C" {
|
||||||
|
|
||||||
#define OXR_VERIFY_SUBACTION_PATHS(log, count, paths) \
|
#define OXR_VERIFY_SUBACTION_PATHS(log, count, paths) \
|
||||||
do { \
|
do { \
|
||||||
if (count == 0 && paths != NULL) { \
|
|
||||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
|
|
||||||
" " #count " is zero but " #paths \
|
|
||||||
" is not NULL"); \
|
|
||||||
} \
|
|
||||||
if (count > 0 && paths == NULL) { \
|
if (count > 0 && paths == NULL) { \
|
||||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
|
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
|
||||||
" " #count " is not zero but " #paths \
|
" " #count " is not zero but " #paths \
|
||||||
|
|
Loading…
Reference in a new issue