From ea6ae3359efd1db6f71132b6071a00d896db90fc Mon Sep 17 00:00:00 2001 From: St4ckC00ki3 <60530949+StackC00ki3@users.noreply.github.com> Date: Fri, 17 Apr 2026 17:59:03 +0800 Subject: [PATCH] Fix windows-port crash on startup when showvers option is enabled --- sys/windows/windmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/windows/windmain.c b/sys/windows/windmain.c index a5bf3ae65..8d499cd5d 100644 --- a/sys/windows/windmain.c +++ b/sys/windows/windmain.c @@ -197,11 +197,11 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/ #endif #endif - gh.hname = "NetHack"; /* used for syntax messages */ set_emergency_io(); #ifndef MSWIN_GRAPHICS early_init(argc, argv); /* already in WinMain for MSWIN_GRAPHICS */ #endif + gh.hname = "NetHack"; /* used for syntax messages */ set_default_prefix_locations( argv[0]); /* must be re-done after initoptions_init() * which clears out gp.fqn_prefix[] */