mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-29 04:02:05 +01:00
st/oxr: Adjust two call helper to satisfy spec.
This commit is contained in:
1 parent
758373b7de
commit
ae63bfc0ac
1 file changed
+5
-2
@@ -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; \
|
||||
} \
|
||||
|
||||
Reference in new issue
Block a user