mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/oxr: Adjust two call helper to satisfy spec.
This commit is contained in:
parent
758373b7de
commit
ae63bfc0ac
|
@ -17,9 +17,12 @@ extern "C" {
|
|||
|
||||
#define OXR_TWO_CALL_HELPER(log, cnt_input, cnt_output, output, count, data) \
|
||||
do { \
|
||||
if (cnt_output != NULL) { \
|
||||
*cnt_output = count; \
|
||||
if (cnt_output == NULL) { \
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
|
||||
#cnt_output); \
|
||||
} \
|
||||
*cnt_output = count; \
|
||||
\
|
||||
if (cnt_input == 0) { \
|
||||
return XR_SUCCESS; \
|
||||
} \
|
||||
|
|
Loading…
Reference in a new issue