[PATCH] [WineDbg]: forward the wShowWindow option from winedbg to
the debuggee
Eric Pouech
eric.pouech at wanadoo.fr
Mon Mar 5 14:54:35 CST 2007
A+
---
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_excep
static unsigned dbg_start_debuggee(LPSTR cmdLine)
{
PROCESS_INFORMATION info;
- STARTUPINFOA startup;
+ STARTUPINFOA startup, current;
DWORD flags;
+ GetStartupInfoA(¤t);
+
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-patches
mailing list