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

Huw Davies huw at codeweavers.com
Mon Oct 8 07:57:52 CDT 2018


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 programs/winedbg/winedbg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c
index 0e45186111..8634c0f73f 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 );
-- 
2.18.0




More information about the wine-devel mailing list