mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-23 23:03:35 +03:00
steam.exe: Make process system after child process has started.
So that it can connect to the winstation and get a desktop reference before steam.exe releases theirs. CW-Bug-ID: #19584
This commit is contained in:
parent
a7d8aabc0d
commit
fc27d69033
@ -1376,8 +1376,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
SteamAPI_Shutdown();
|
SteamAPI_Shutdown();
|
||||||
|
|
||||||
NtSetInformationProcess( GetCurrentProcess(), (PROCESS_INFORMATION_CLASS)1000 /* ProcessWineMakeProcessSystem */,
|
|
||||||
&wait_handle, sizeof(HANDLE *) );
|
|
||||||
game_process = TRUE;
|
game_process = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1397,7 +1395,6 @@ int main(int argc, char *argv[])
|
|||||||
if (child == INVALID_HANDLE_VALUE)
|
if (child == INVALID_HANDLE_VALUE)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (wait_handle == INVALID_HANDLE_VALUE)
|
|
||||||
wait_handle = child;
|
wait_handle = child;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1405,6 +1402,10 @@ int main(int argc, char *argv[])
|
|||||||
CreateThread(NULL, 0, steam_drm_thread, child, 0, NULL);
|
CreateThread(NULL, 0, steam_drm_thread, child, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (game_process)
|
||||||
|
NtSetInformationProcess( GetCurrentProcess(), (PROCESS_INFORMATION_CLASS)1000 /* ProcessWineMakeProcessSystem */,
|
||||||
|
&wait_handle, sizeof(HANDLE *) );
|
||||||
|
|
||||||
if(wait_handle != INVALID_HANDLE_VALUE)
|
if(wait_handle != INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user