Skip to content

Commit ba22723

Browse files
committed
lsteamclient: Don't return status from steamclient_init_registry().
It's not used for anything anyway. Trying to use unix call's return value just makes it hard to assert on actual errors like exceptions.
1 parent 89c9625 commit ba22723

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lsteamclient/steamclient_main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,8 @@ void CDECL Steam_NotifyMissingInterface( int32_t hSteamPipe, const char *pchVers
618618
STEAMCLIENT_CALL( steamclient_Steam_NotifyMissingInterface, &params );
619619
}
620620

621-
BOOL CDECL steamclient_init_registry(void)
621+
void steamclient_init_registry(void)
622622
{
623623
load_steamclient();
624-
if (STEAMCLIENT_CALL( steamclient_init_registry, NULL )) return FALSE;
625-
return TRUE;
624+
STEAMCLIENT_CALL( steamclient_init_registry, NULL );
626625
}

lsteamclient/unixlib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ static NTSTATUS steamclient_init_registry( Params *params, bool wow64 )
685685
{
686686
ERR( "Failed to connect to Steam\n" );
687687
if (pipe) client->BReleaseSteamPipe( pipe );
688-
return -1;
688+
return 0;
689689
}
690690

691691
setup_steam_registry( client, pipe, user );

0 commit comments

Comments
 (0)