The open source OpenXR runtime
0
fork

Configure Feed

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

t/vit: Return success from vit_get_proc

Closes #322

authored by

Mateo de Mayo and committed by
Simon Zeni
6b323209 d80a41f3

+6 -3
+6 -3
src/xrt/auxiliary/tracking/t_vit_loader.c
··· 19 19 #include <dlfcn.h> 20 20 #endif 21 21 22 - static inline void 22 + static inline bool 23 23 vit_get_proc(void *handle, const char *name, void *proc_ptr) 24 24 { 25 25 #if defined(XRT_OS_LINUX) || defined(XRT_OS_ANDROID) ··· 27 27 char *err = dlerror(); 28 28 if (err != NULL) { 29 29 U_LOG_E("Failed to load symbol %s", err); 30 - return; 30 + return false; 31 31 } 32 32 33 33 *(void **)proc_ptr = proc; 34 + return true; 34 35 #else 35 36 #error "Unknown platform" 36 37 #endif ··· 51 52 52 53 #define GET_PROC(SYM) \ 53 54 do { \ 54 - vit_get_proc(vit->handle, "vit_" #SYM, &vit->SYM); \ 55 + if (!vit_get_proc(vit->handle, "vit_" #SYM, &vit->SYM)) { \ 56 + return false; \ 57 + } \ 55 58 } while (0) 56 59 57 60 // Get the version first.