Something <Someone> reported. Ensure that an early panic() doesn't

cause an access violation in win32 graphical port.
This commit is contained in:
nethack.allison
2002-03-07 21:50:20 +00:00
parent 101dcc48e0
commit 53d5dcf83a

View File

@@ -50,6 +50,11 @@ int APIENTRY WinMain(HINSTANCE hInstance,
TCHAR wbuf[BUFSZ];
char buf[BUFSZ];
/* 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;
/* init applicatio structure */
_nethack_app.hApp = hInstance;
_nethack_app.hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_NETHACKW);