From: nhmall Date: Sun, 9 Dec 2018 04:04:53 +0000 (-0500) Subject: clean up some tear-down X-Git-Tag: nmake-explicit-path~55^2~3^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f706ba094cc805a6be5c3d4377ba4a1c7831f388;p=nethack clean up some tear-down Windows continued to use function pointers belonging to particular window ports that were still assigned even after that port (tty) had gone through its shutdown procedures when requested by the core. Fix that and return to the minimal function pointers that are not part of any of the actual WindowPorts. --- diff --git a/sys/winnt/winnt.c b/sys/winnt/winnt.c index 86432e028..75dda292d 100644 --- a/sys/winnt/winnt.c +++ b/sys/winnt/winnt.c @@ -507,12 +507,13 @@ int code; * not vanish instantly after being created. * GUILaunched is defined and set in nttty.c. */ - synch_cursor(); + if (GUILaunched) - getreturn("to end"); - synch_cursor(); - getreturn_enabled = TRUE; - wait_synch(); + getreturn_enabled = TRUE; + else + windowprocs = *get_safe_procs(1); + if (getreturn_enabled) + wait_synch(); exit(code); }