From e25de5fce0ba843c031bfb85060e499c7e7ed545 Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Thu, 27 Sep 2001 02:52:17 +0000 Subject: [PATCH] - check for null gCTable, which I am getting every time I run from the command line. This is better than a bus error IMHO. --- bochs/gui/carbon.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/bochs/gui/carbon.cc b/bochs/gui/carbon.cc index a5494c47c..803032dea 100644 --- a/bochs/gui/carbon.cc +++ b/bochs/gui/carbon.cc @@ -343,6 +343,7 @@ void bx_gui_c::specific_init(bx_gui_c *th, int argc, char **argv, unsigned tilew CreateKeyMap(); gCTable = GetCTable(128); + BX_ASSERT (gCTable != NULL); (*gCTable)->ctSeed = GetCTSeed(); SetRect(&srcTextRect, 0, 0, FONT_WIDTH, FONT_HEIGHT); SetRect(&srcTileRect, 0, 0, tilewidth, tileheight);