winedbg: Fixed the auto mode.

This commit is contained in:
Eric Pouech 2006-10-02 22:30:11 +02:00 committed by Alexandre Julliard
parent 85230942e8
commit 28dc896b28
2 changed files with 4 additions and 1 deletions

View File

@ -204,7 +204,7 @@ void info_win32_module(DWORD base)
int i, j, num_printed = 0;
DWORD opt;
if (!dbg_curr_process || !dbg_curr_thread)
if (!dbg_curr_process)
{
dbg_printf("Cannot get info on module while no process is loaded\n");
return;

View File

@ -927,6 +927,9 @@ enum dbg_start dbg_active_auto(int argc, char* argv[])
else return start_error_parse;
if (hFile == INVALID_HANDLE_VALUE) return start_error_parse;
if (dbg_curr_process->active_debuggee)
dbg_active_wait_for_first_exception();
dbg_interactiveP = TRUE;
parser_handle(hFile);