mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-14 15:48:11 +03:00
vrclient_x64: Unload native vrclient shared library on process detach.
This commit is contained in:
parent
89c297da9d
commit
98f55bfdb1
@ -46,6 +46,8 @@ typedef struct winRenderModel_TextureMap_t_11415 winRenderModel_TextureMap_t_114
|
|||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
||||||
|
|
||||||
|
static void *vrclient_lib;
|
||||||
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
|
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
|
||||||
{
|
{
|
||||||
TRACE("(%p, %u, %p)\n", instance, reason, reserved);
|
TRACE("(%p, %u, %p)\n", instance, reason, reserved);
|
||||||
@ -55,6 +57,14 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
|
|||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
DisableThreadLibraryCalls(instance);
|
DisableThreadLibraryCalls(instance);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case DLL_PROCESS_DETACH:
|
||||||
|
if (vrclient_lib)
|
||||||
|
{
|
||||||
|
dlclose(vrclient_lib);
|
||||||
|
vrclient_lib = NULL;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -215,7 +225,6 @@ static pfn_dtor get_win_destructor(const char *name)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *vrclient_lib;
|
|
||||||
static void *(*vrclient_HmdSystemFactory)(const char *name, int *return_code);
|
static void *(*vrclient_HmdSystemFactory)(const char *name, int *return_code);
|
||||||
static void *(*vrclient_VRClientCoreFactory)(const char *name, int *return_code);
|
static void *(*vrclient_VRClientCoreFactory)(const char *name, int *return_code);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user