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
1 changed files with 5 additions and 4 deletions
|
@ -1376,8 +1376,6 @@ int main(int argc, char *argv[])
|
|||
|
||||
SteamAPI_Shutdown();
|
||||
|
||||
NtSetInformationProcess( GetCurrentProcess(), (PROCESS_INFORMATION_CLASS)1000 /* ProcessWineMakeProcessSystem */,
|
||||
&wait_handle, sizeof(HANDLE *) );
|
||||
game_process = TRUE;
|
||||
}
|
||||
|
||||
|
@ -1397,7 +1395,6 @@ int main(int argc, char *argv[])
|
|||
if (child == INVALID_HANDLE_VALUE)
|
||||
return 1;
|
||||
|
||||
if (wait_handle == INVALID_HANDLE_VALUE)
|
||||
wait_handle = child;
|
||||
}
|
||||
|
||||
|
@ -1405,6 +1402,10 @@ int main(int argc, char *argv[])
|
|||
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)
|
||||
{
|
||||
FreeConsole();
|
||||
|
|
Loading…
Reference in a new issue