Based on a patch in [1] from Bernhard Übelacker
Funnily enough, this fixes ctrl-c for getting back to WineDbg prompt but when not in gdb proxy mode (what the BZ entry is about).
[1] https://bugs.winehq.org/show_bug.cgi?id=51766
Signed-off-by: Eric Pouech eric.pouech@gmail.com
--- programs/start/start.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/programs/start/start.c b/programs/start/start.c index e78968e2052..dcd0a113f59 100644 --- a/programs/start/start.c +++ b/programs/start/start.c @@ -676,6 +676,7 @@ done:
if (sei.fMask & SEE_MASK_NOCLOSEPROCESS) { DWORD exitcode; + SetConsoleCtrlHandler(NULL, TRUE); WaitForSingleObject(sei.hProcess, INFINITE); GetExitCodeProcess(sei.hProcess, &exitcode); ExitProcess(exitcode);