Eric Pouech : winedbg: Forward the wShowWindow option from winedbg to the debuggee.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 6 06:03:59 CST 2007


Module: wine
Branch: master
Commit: deaa366e4c8ecc2f0c9813226911766b3367d080
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=deaa366e4c8ecc2f0c9813226911766b3367d080

Author: Eric Pouech <eric.pouech at wanadoo.fr>
Date:   Mon Mar  5 21:54:35 2007 +0100

winedbg: Forward the wShowWindow option from winedbg to the debuggee.

---

 programs/winedbg/tgt_active.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/programs/winedbg/tgt_active.c b/programs/winedbg/tgt_active.c
index 8730f41..21e8966 100644
--- a/programs/winedbg/tgt_active.c
+++ b/programs/winedbg/tgt_active.c
@@ -703,13 +703,17 @@ void     dbg_active_wait_for_first_exception(void)
 static	unsigned dbg_start_debuggee(LPSTR cmdLine)
 {
     PROCESS_INFORMATION	info;
-    STARTUPINFOA	startup;
+    STARTUPINFOA	startup, current;
     DWORD               flags;
 
+    GetStartupInfoA(&current);
+
     memset(&startup, 0, sizeof(startup));
     startup.cb = sizeof(startup);
     startup.dwFlags = STARTF_USESHOWWINDOW;
-    startup.wShowWindow = SW_SHOWNORMAL;
+
+    startup.wShowWindow = (current.dwFlags & STARTF_USESHOWWINDOW) ?
+        current.wShowWindow : SW_SHOWNORMAL;
 
     /* FIXME: shouldn't need the CREATE_NEW_CONSOLE, but as usual CUI:s need it
      * while GUI:s don't




More information about the wine-cvs mailing list