From: nhmall Date: Mon, 7 Dec 2015 11:48:05 +0000 (-0500) Subject: fix a 'program in disorder' in tt_oname X-Git-Tag: NetHack-3.6.0_RC05^0 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=585e9f1b35fda7b47f8d27d12f7e93e12a69a7bc;p=nethack fix a 'program in disorder' in tt_oname Changes to be committed: modified: win/win32/winhack.c sys_early_init was never called for win32 GUI. That was causing "rnd(0) - program in disorder" in tt_oname. --- diff --git a/win/win32/winhack.c b/win/win32/winhack.c index d47762d8c..a85bdc478 100644 --- a/win/win32/winhack.c +++ b/win/win32/winhack.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 winhack.c $NHDT-Date: 1434803624 2015/06/20 12:33:44 $ $NHDT-Branch: win32-x64-working $:$NHDT-Revision: 1.43 $ */ +/* NetHack 3.6 winhack.c $NHDT-Date: 1449488876 2015/12/07 11:47:56 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.44 $ */ /* Copyright (C) 2001 by Alex Kompel */ /* NetHack may be freely redistributed. See license for details. */ @@ -88,6 +88,8 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, UNREFERENCED_PARAMETER(lpCmdLine); UNREFERENCED_PARAMETER(nCmdShow); + sys_early_init(); + /* ensure that we don't access violate on a panic() */ windowprocs.win_raw_print = mswin_raw_print; windowprocs.win_raw_print_bold = mswin_raw_print_bold;