From 5d4a49a1c7ce88ce43434507fb1dd1a5d7a27928 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Fri, 31 Jul 2020 02:58:14 +0200 Subject: [PATCH] st/oxr: Actually return invalid path error in sync actions --- src/xrt/state_trackers/oxr/oxr_api_action.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xrt/state_trackers/oxr/oxr_api_action.c b/src/xrt/state_trackers/oxr/oxr_api_action.c index 9a7e64108..ed00f65dd 100644 --- a/src/xrt/state_trackers/oxr/oxr_api_action.c +++ b/src/xrt/state_trackers/oxr/oxr_api_action.c @@ -47,9 +47,12 @@ oxr_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo) OXR_VERIFY_ACTIONSET_NOT_NULL( &log, syncInfo->activeActionSets[i].actionSet, act_set); - oxr_verify_subaction_path_sync( + XrResult res = oxr_verify_subaction_path_sync( &log, sess->sys->inst, syncInfo->activeActionSets[i].subactionPath, i); + if (res != XR_SUCCESS) { + return res; + } } return oxr_action_sync_data(&log, sess, syncInfo->countActiveActionSets,