mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
st/oxr: Use correct error returns in single level path
Spotted by Ryan.
This commit is contained in:
parent
e4a779f19b
commit
51b5d55e61
|
@ -68,12 +68,12 @@ oxr_verify_fixed_size_single_level_path(struct oxr_logger* log,
|
|||
}
|
||||
|
||||
if (path[0] == '\0') {
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||
return oxr_error(log, XR_ERROR_PATH_FORMAT_INVALID,
|
||||
"(%s) can not be empty", name);
|
||||
}
|
||||
|
||||
if (!contains_zero(path, array_size)) {
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||
return oxr_error(log, XR_ERROR_PATH_FORMAT_INVALID,
|
||||
"(%s) must include zero termination '\\0'.",
|
||||
name);
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ oxr_verify_fixed_size_single_level_path(struct oxr_logger* log,
|
|||
}
|
||||
|
||||
return oxr_error(
|
||||
log, XR_ERROR_VALIDATION_FAILURE,
|
||||
log, XR_ERROR_PATH_FORMAT_INVALID,
|
||||
"(%s) 0x%02x is not a valid character at position %u", name,
|
||||
c, (uint32_t)i);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue