mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +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;
|
||||
static void *vrclient;
|
||||
|
||||
params->_ret = false;
|
||||
|
||||
if (vrclient)
|
||||
{
|
||||
params->_ret = true;
|
||||
@ -86,14 +88,14 @@ NTSTATUS vrclient_init( void *args )
|
||||
if (!(vrclient = dlopen( params->unix_path, RTLD_NOW )))
|
||||
{
|
||||
TRACE( "unable to load %s\n", params->unix_path );
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define LOAD_FUNC( x ) \
|
||||
if (!(p_##x = (decltype(p_##x))dlsym( vrclient, #x ))) \
|
||||
{ \
|
||||
ERR( "unable to load " #x "\n" ); \
|
||||
return -1; \
|
||||
return 0; \
|
||||
}
|
||||
|
||||
LOAD_FUNC( HmdSystemFactory );
|
||||
@ -102,7 +104,7 @@ NTSTATUS vrclient_init( void *args )
|
||||
#undef LOAD_FUNC
|
||||
|
||||
if (!load_vk_unwrappers( params->winevulkan ))
|
||||
return -1;
|
||||
return 0;
|
||||
|
||||
params->_ret = true;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user