mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +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) \
|
||||
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) { \
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
|
||||
" " #count " is not zero but " #paths \
|
||||
|
|
Loading…
Reference in a new issue