vrclient: Check vrclient before dlclose.

This commit is contained in:
Rémi Bernon 2025-01-22 20:11:39 +01:00 committed by Arkadiusz Hiler
parent 107a633b97
commit 8d19973b01

View File

@ -344,7 +344,7 @@ static NTSTATUS vrclient_init( Params *params, bool wow64 )
template< typename Params >
static NTSTATUS vrclient_unload( Params *params, bool wow64 )
{
dlclose( vrclient );
if (vrclient) dlclose( vrclient );
vrclient = NULL;
p_HmdSystemFactory = NULL;
p_VRClientCoreFactory = NULL;