mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-13 23:28:16 +03:00
lsteamclient: Preserve last error in load_steamclient().
CW-Bug-Id: #24028
This commit is contained in:
parent
687a81ed09
commit
b41d9d7a36
@ -342,6 +342,7 @@ static int load_steamclient(void)
|
||||
{
|
||||
char steam_app_id[4096], ignore_child_processes[4096];
|
||||
struct steamclient_init_params params = {.g_tmppath = temp_path_buffer};
|
||||
DWORD saved_err = GetLastError();
|
||||
|
||||
if (!get_env_win(u"SteamAppId", steam_app_id, sizeof(steam_app_id)))
|
||||
params.steam_app_id_unset = TRUE;
|
||||
@ -362,6 +363,7 @@ static int load_steamclient(void)
|
||||
WSAStartup(0x202, &data);
|
||||
wsa_initialized = TRUE;
|
||||
}
|
||||
SetLastError(saved_err);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user