Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
Merge pull request #23 from natbro/shim-std-handles
NotProtonNotbdb94e2be730
diff --cc steam-shim/steam.cppindex e5033a5,0820f94..15eb220--- a/steam-shim/steam.cpp+++ b/steam-shim/steam.cpp@@@ -1459,7 -1459,13 +1459,12 @@@ runsi.wShowWindow = SW_HIDE;}- if (!CreateProcessW(NULL, cmdline, NULL, NULL, FALSE, flags, NULL, NULL, &si, &pi))- /* Hand the child our own std handles, otherwise everything it prints is lost. */+ si.dwFlags |= STARTF_USESTDHANDLES;+ si.hStdInput = GetStdHandle(STD_INPUT_HANDLE);+ si.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);+ si.hStdError = GetStdHandle(STD_ERROR_HANDLE);++ if (!CreateProcessW(NULL, cmdline, NULL, NULL, TRUE, flags, NULL, NULL, &si, &pi)){WINE_ERR("Failed to create process %s: %u\n", wine_dbgstr_w(cmdline), GetLastError());return INVALID_HANDLE_VALUE;