mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-15 16:18:20 +03:00
vrclient: Return STATUS_SUCCESS from vrclient_init() on initialization failures.
Initialization status is returned in parameters, returning non-zero NTSTATUS causes unneeded assertion failure. CW-Bug-Id: #23354
This commit is contained in:
parent
44c58e0857
commit
250242f66a
@ -77,6 +77,8 @@ NTSTATUS vrclient_init( void *args )
|
|||||||
struct vrclient_init_params *params = (struct vrclient_init_params *)args;
|
struct vrclient_init_params *params = (struct vrclient_init_params *)args;
|
||||||
static void *vrclient;
|
static void *vrclient;
|
||||||
|
|
||||||
|
params->_ret = false;
|
||||||
|
|
||||||
if (vrclient)
|
if (vrclient)
|
||||||
{
|
{
|
||||||
params->_ret = true;
|
params->_ret = true;
|
||||||
@ -86,14 +88,14 @@ NTSTATUS vrclient_init( void *args )
|
|||||||
if (!(vrclient = dlopen( params->unix_path, RTLD_NOW )))
|
if (!(vrclient = dlopen( params->unix_path, RTLD_NOW )))
|
||||||
{
|
{
|
||||||
TRACE( "unable to load %s\n", params->unix_path );
|
TRACE( "unable to load %s\n", params->unix_path );
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define LOAD_FUNC( x ) \
|
#define LOAD_FUNC( x ) \
|
||||||
if (!(p_##x = (decltype(p_##x))dlsym( vrclient, #x ))) \
|
if (!(p_##x = (decltype(p_##x))dlsym( vrclient, #x ))) \
|
||||||
{ \
|
{ \
|
||||||
ERR( "unable to load " #x "\n" ); \
|
ERR( "unable to load " #x "\n" ); \
|
||||||
return -1; \
|
return 0; \
|
||||||
}
|
}
|
||||||
|
|
||||||
LOAD_FUNC( HmdSystemFactory );
|
LOAD_FUNC( HmdSystemFactory );
|
||||||
@ -102,7 +104,7 @@ NTSTATUS vrclient_init( void *args )
|
|||||||
#undef LOAD_FUNC
|
#undef LOAD_FUNC
|
||||||
|
|
||||||
if (!load_vk_unwrappers( params->winevulkan ))
|
if (!load_vk_unwrappers( params->winevulkan ))
|
||||||
return -1;
|
return 0;
|
||||||
|
|
||||||
params->_ret = true;
|
params->_ret = true;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user