fix access violation in status_finish() if window port not initialized
This commit is contained in:
@@ -21,6 +21,9 @@ targetting with a polearm could give away location of hidden monster
|
|||||||
static prototype could be left orphaned depending on #defines in rip.c
|
static prototype could be left orphaned depending on #defines in rip.c
|
||||||
config file error handling routines were calling xx_wait_synch early
|
config file error handling routines were calling xx_wait_synch early
|
||||||
even before the window system was initialized; add a default routine
|
even before the window system was initialized; add a default routine
|
||||||
|
status_finish() in botl.c would unconditionally invoke the window port's
|
||||||
|
win_status_finish() routine which was problematic if the windowport
|
||||||
|
wasn't initialized yet
|
||||||
|
|
||||||
|
|
||||||
Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository
|
Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository
|
||||||
|
|||||||
+2
-1
@@ -876,7 +876,8 @@ status_finish()
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* call the window port cleanup routine first */
|
/* call the window port cleanup routine first */
|
||||||
(*windowprocs.win_status_finish)();
|
if (windowprocs.win_status_finish)
|
||||||
|
(*windowprocs.win_status_finish)();
|
||||||
|
|
||||||
/* free memory that we alloc'd now */
|
/* free memory that we alloc'd now */
|
||||||
for (i = 0; i < MAXBLSTATS; ++i) {
|
for (i = 0; i < MAXBLSTATS; ++i) {
|
||||||
|
|||||||
Reference in New Issue
Block a user