kernel32: Do not create a console window for winevdm.exe

Michael Stefaniuc mstefani at redhat.de
Wed Jun 26 10:17:22 CDT 2013


Fixes a regression from 72d5e7cd36af48418436deca83e308d55b0ae3d2
---
winevdm.exe gets a console window when starting DOS/Win16 bit apps with
wine start. But:
- Win16 GUI apps don't need that window.
- DOSBox has it's own window and DOSBox is the future!
- No clue if there are Win16 console apps still in use and if people use
  wine start to start those. I don't have one so I couldn't test if
  those break and compare them how native "start" handles those.

 

 dlls/kernel32/process.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index d07065c..6d99dff 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -2091,6 +2091,7 @@ static BOOL create_vdm_process( LPCWSTR filename, LPWSTR cmd_line, LPWSTR env, L
         return FALSE;
     }
     sprintfW( new_cmd_line, argsW, winevdmW, filename, cmd_line );
+    flags &= ~CREATE_NEW_CONSOLE;
     ret = create_process( 0, winevdmW, new_cmd_line, env, cur_dir, psa, tsa, inherit,
                           flags, startup, info, unixdir, binary_info, exec_only );
     HeapFree( GetProcessHeap(), 0, new_cmd_line );
-- 
1.7.11.7



More information about the wine-patches mailing list