Fix crash when no dictionary by checking for null model before calling

cePositionBoard on WM_SETTINGCHANGE event
This commit is contained in:
ehouse 2006-04-02 21:52:15 +00:00
parent 08e8c4a858
commit 88b37a1beb

View file

@ -1600,9 +1600,11 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
SHHandleWMSettingChange( hWnd, wParam, lParam, &globals->sai ); SHHandleWMSettingChange( hWnd, wParam, lParam, &globals->sai );
#endif #endif
if ( !!globals && !!globals->game.model ) {
cePositionBoard( globals ); cePositionBoard( globals );
board_invalAll( globals->game.board ); board_invalAll( globals->game.board );
draw = XP_TRUE; draw = XP_TRUE;
}
break; break;
#ifdef CEFEATURE_CANSCROLL #ifdef CEFEATURE_CANSCROLL