openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Fix possible segmentation fault in VR_InitInternal

Open hickspl opened this issue 8 years ago • 0 comments

It's possible that VR_LoadHmdSystemInternal() will return before it sets g_pVRModule global pointer to a valid value. Without this change NULL will be passed to SharedLib_Unload which on Linux will result in calling dlclose(NULL) which will cause a segmentation fault.

hickspl avatar May 01 '17 02:05 hickspl