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:
Rémi Bernon 2021-11-15 12:59:33 +01:00 committed by Arkadiusz Hiler
parent a7d8aabc0d
commit fc27d69033

View file

@ -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,14 +1395,17 @@ int main(int argc, char *argv[])
if (child == INVALID_HANDLE_VALUE)
return 1;
if (wait_handle == INVALID_HANDLE_VALUE)
wait_handle = child;
wait_handle = child;
}
if (game_process)
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();