From b62b740de20269fc4c785faac4b51a314fee7cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= Date: Fri, 14 Jun 2013 23:28:35 +0200 Subject: [PATCH] winedbg: Call DebugActiveProcessStop when detaching. --- programs/winedbg/tgt_active.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/winedbg/tgt_active.c b/programs/winedbg/tgt_active.c index a264a673b0a..0c8e86911ac 100644 --- a/programs/winedbg/tgt_active.c +++ b/programs/winedbg/tgt_active.c @@ -946,7 +946,8 @@ static BOOL tgt_process_active_close_process(struct dbg_process* pcs, BOOL kill) ContinueDebugEvent(dbg_curr_pid, dbg_curr_tid, DBG_CONTINUE); } } - else + + if (!kill) { if (!DebugActiveProcessStop(pcs->pid)) return FALSE; }