st/oxr: Return correct error on bad sub action path

This commit is contained in:
Jakob Bornecrantz 2020-05-30 20:08:52 +01:00
parent 00818881de
commit 981bae8d0a
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
OpenXR: Return the correct error code when verifying the sub action, if it is
a valid sub action path but not given at action creation we should return
`XR_ERROR_PATH_UNSUPPORTED`.

View file

@ -436,7 +436,7 @@ oxr_verify_subaction_path_get(struct oxr_logger *log,
oxr_path_get_string(log, inst, path, &str, &length);
return oxr_error(log, XR_ERROR_PATH_INVALID,
return oxr_error(log, XR_ERROR_PATH_UNSUPPORTED,
"(%s == '%s') the subaction path was "
"not specified at action creation",
variable, str);