Huw Davies : winedbg: Ignore ^C events in the parent 32-bit process.

Alexandre Julliard julliard at winehq.org
Mon Oct 8 15:44:07 CDT 2018


Module: wine
Branch: master
Commit: 8908bdbb737a76a99fb194d5a465063fa35c2f08
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8908bdbb737a76a99fb194d5a465063fa35c2f08

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Oct  8 13:57:52 2018 +0100

winedbg: Ignore ^C events in the parent 32-bit process.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winedbg/winedbg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c
index 0e45186..8634c0f 100644
--- a/programs/winedbg/winedbg.c
+++ b/programs/winedbg/winedbg.c
@@ -652,6 +652,7 @@ static void restart_if_wow64(void)
         if (CreateProcessW( filename, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ))
         {
             WINE_TRACE( "restarting %s\n", wine_dbgstr_w(filename) );
+            SetConsoleCtrlHandler( NULL, TRUE ); /* Ignore ^C */
             WaitForSingleObject( pi.hProcess, INFINITE );
             GetExitCodeProcess( pi.hProcess, &exit_code );
             ExitProcess( exit_code );




More information about the wine-cvs mailing list