From e1e9a2f3641ee8a75adab1291934e82fbdcdebc2 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 24 Sep 2023 11:34:58 -0400 Subject: [PATCH] avoid crash upon exit under Windows with curses --- sys/windows/windsys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/windows/windsys.c b/sys/windows/windsys.c index e366e4a73..8a970aa93 100644 --- a/sys/windows/windsys.c +++ b/sys/windows/windsys.c @@ -495,7 +495,8 @@ nethack_exit(int code) #endif if (getreturn_enabled) { raw_print("\n"); - wait_synch(); + if (iflags.window_inited) + wait_synch(); } exit(code); }