st/oxr: Adjust two call helper to satisfy spec.

This commit is contained in:
Ryan Pavlik authored and Jakob Bornecrantz committed 2019-08-16 23:01:04 +00:00
1 parent 758373b7de
commit ae63bfc0ac
1 file changed
+5 -2
+5 -2
View File
@@ -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; \
} \