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

This commit is contained in:
Eric Pouech 2007-03-05 21:54:35 +01:00 committed by Alexandre Julliard
parent e374bcffee
commit deaa366e4c
1 changed files with 6 additions and 2 deletions

View File

@ -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