mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-17 19:20:13 +00:00
st/oxr: Return correct error on bad sub action path
This commit is contained in:
parent
00818881de
commit
981bae8d0a
3
doc/changes/state_trackers/mr.359.10.md
Normal file
3
doc/changes/state_trackers/mr.359.10.md
Normal 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`.
|
|
@ -436,7 +436,7 @@ oxr_verify_subaction_path_get(struct oxr_logger *log,
|
||||||
|
|
||||||
oxr_path_get_string(log, inst, path, &str, &length);
|
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 "
|
"(%s == '%s') the subaction path was "
|
||||||
"not specified at action creation",
|
"not specified at action creation",
|
||||||
variable, str);
|
variable, str);
|
||||||
|
|
Loading…
Reference in a new issue