diff --git a/src/xrt/state_trackers/oxr/oxr_session.c b/src/xrt/state_trackers/oxr/oxr_session.c index b3cb706ad..af84bd1f0 100644 --- a/src/xrt/state_trackers/oxr/oxr_session.c +++ b/src/xrt/state_trackers/oxr/oxr_session.c @@ -499,8 +499,8 @@ oxr_session_destroy(struct oxr_logger *log, struct oxr_handle_base *hb) do { \ OXR_ALLOCATE_HANDLE_OR_RETURN(LOG, OUT, OXR_XR_DEBUG_SESSION, \ oxr_session_destroy, \ - &SYS->inst->handle); \ - OUT->sys = SYS; \ + &(SYS)->inst->handle); \ + (OUT)->sys = (SYS); \ } while (0) XrResult