Fixing a regression from f034084d49b354811096524d472ae5172ac1cebf.
Signed-off-by: RĂ©mi Bernon rbernon@codeweavers.com Signed-off-by: Eric Pouech eric.pouech@gmail.com
--- programs/winetest/main.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/programs/winetest/main.c b/programs/winetest/main.c index eb86770afbf..b40b775adb3 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -640,6 +640,8 @@ run_ex (char *cmd, HANDLE out_file, const char *tempdir, DWORD ms, BOOL nocritic else flags = CREATE_DEFAULT_ERROR_MODE;
+ /* don't (potentially) create a console when not attached to one */ + if (!GetConsoleOCP()) flags |= DETACHED_PROCESS; if (!CreateProcessA (NULL, cmd, NULL, NULL, TRUE, flags, NULL, tempdir, &si, &pi)) {