From 9b8046131dc97c596292da6d392f00eb85b9f4e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Sun, 12 Dec 2021 09:42:06 +0100 Subject: [PATCH] steam.exe: Use NtSetInformationProcess instead of __wine_make_process_system. --- steam_helper/steam.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/steam_helper/steam.cpp b/steam_helper/steam.cpp index 89e949af..cae268d2 100644 --- a/steam_helper/steam.cpp +++ b/steam_helper/steam.cpp @@ -61,8 +61,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(steam); -EXTERN_C HANDLE CDECL __wine_make_process_system(void); - #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*a)) static bool env_nonzero(const char *env) @@ -1378,7 +1376,8 @@ int main(int argc, char *argv[]) SteamAPI_Shutdown(); - wait_handle = __wine_make_process_system(); + NtSetInformationProcess( GetCurrentProcess(), (PROCESS_INFORMATION_CLASS)1000 /* ProcessWineMakeProcessSystem */, + &wait_handle, sizeof(HANDLE *) ); game_process = TRUE; }