mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
st/oxr: Correct localized name validation
This commit is contained in:
parent
a69cae7516
commit
6d61b9dec2
2
doc/changes/state_trackers/mr.359.12.md
Normal file
2
doc/changes/state_trackers/mr.359.12.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
OpenXR: Correct the return error code for action and action set localized name
|
||||||
|
validation.
|
|
@ -110,12 +110,12 @@ oxr_verify_localized_name(struct oxr_logger *log,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string[0] == '\0') {
|
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);
|
"(%s) can not be empty", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!contains_zero(string, array_size)) {
|
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'.",
|
"(%s) must include zero termination '\\0'.",
|
||||||
name);
|
name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue