From 8d19973b01143af19f4d6c1d6f84c02fcb5e66e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Wed, 22 Jan 2025 20:11:39 +0100 Subject: [PATCH] vrclient: Check vrclient before dlclose. --- vrclient_x64/unixlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrclient_x64/unixlib.cpp b/vrclient_x64/unixlib.cpp index d4160c35..7bbe88a4 100644 --- a/vrclient_x64/unixlib.cpp +++ b/vrclient_x64/unixlib.cpp @@ -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;