(svn r2146) - Fix: [ 1175973 ] Crash if any key is pressed in startup (pkirchhofer)

This commit is contained in:
matthijs 2005-04-04 16:47:03 +00:00
parent b2c7543204
commit 00c819c0d5
1 changed files with 5 additions and 2 deletions

View File

@ -1280,8 +1280,11 @@ static void HandleKeypress(uint32 key)
break;
}
if (we.keypress.cont)
FindWindowById(WC_MAIN_TOOLBAR, 0)->wndproc(w, &we);
if (we.keypress.cont) {
w = FindWindowById(WC_MAIN_TOOLBAR, 0);
// When there is no toolbar w is null, check for that
if (w != NULL) w->wndproc(w, &we);
}
}
extern void UpdateTileSelection(void);