Signed-off-by: Zebediah Figura zfigura@codeweavers.com --- programs/winedbg/winedbg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c index 0e45186..504138b 100644 --- a/programs/winedbg/winedbg.c +++ b/programs/winedbg/winedbg.c @@ -749,7 +749,10 @@ int main(int argc, char** argv) if (!argc) ds = start_ok; else if ((ds = dbg_active_attach(argc, argv)) == start_error_parse && (ds = minidump_reload(argc, argv)) == start_error_parse) + { + restart_if_wow64(); ds = dbg_active_launch(argc, argv); + } switch (ds) { case start_ok: break; @@ -757,8 +760,6 @@ int main(int argc, char** argv) case start_error_init: return -1; }
- restart_if_wow64(); - dbg_start_interactive(hFile);
return 0;