The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/common: Fix instance get_prober function

+6 -2
+6 -2
src/xrt/targets/common/target_instance_parts.h
··· 48 48 * 49 49 */ 50 50 51 - static int 51 + static xrt_result_t 52 52 t_instance_get_prober(struct xrt_instance *xinst, struct xrt_prober **out_xp) 53 53 { 54 54 struct t_instance *tinst = t_instance(xinst); 55 55 56 + if (tinst->xp == NULL) { 57 + return XRT_ERROR_PROBER_NOT_SUPPORTED; 58 + } 59 + 56 60 *out_xp = tinst->xp; 57 61 58 - return 0; 62 + return XRT_SUCCESS; 59 63 } 60 64 61 65 static void