From 6d61b9dec28ea04f7931df56d1bc280d82ee0ba8 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 30 May 2020 23:29:55 +0100 Subject: [PATCH] st/oxr: Correct localized name validation --- doc/changes/state_trackers/mr.359.12.md | 2 ++ src/xrt/state_trackers/oxr/oxr_verify.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 doc/changes/state_trackers/mr.359.12.md diff --git a/doc/changes/state_trackers/mr.359.12.md b/doc/changes/state_trackers/mr.359.12.md new file mode 100644 index 000000000..cf64759b3 --- /dev/null +++ b/doc/changes/state_trackers/mr.359.12.md @@ -0,0 +1,2 @@ +OpenXR: Correct the return error code for action and action set localized name +validation. diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c index 0d516e390..6ccaf5709 100644 --- a/src/xrt/state_trackers/oxr/oxr_verify.c +++ b/src/xrt/state_trackers/oxr/oxr_verify.c @@ -110,12 +110,12 @@ oxr_verify_localized_name(struct oxr_logger *log, } if (string[0] == '\0') { - return oxr_error(log, XR_ERROR_NAME_INVALID, + return oxr_error(log, XR_ERROR_LOCALIZED_NAME_INVALID, "(%s) can not be empty", name); } if (!contains_zero(string, array_size)) { - return oxr_error(log, XR_ERROR_NAME_INVALID, + return oxr_error(log, XR_ERROR_LOCALIZED_NAME_INVALID, "(%s) must include zero termination '\\0'.", name); }