# HG changeset patch # User Sam Lantinga # Date 1018395160 0 # Node ID f2ba51f64d490e765863dd93d291a750a83bf7a5 # Parent 3d6dd1b7b7bab66caf8a20b21ef7991e340dac44 Fixed a crash bug in the WM_ACTIVATE code (thanks John!) diff -r 3d6dd1b7b7ba -r f2ba51f64d49 src/video/wincommon/SDL_sysevents.c --- a/src/video/wincommon/SDL_sysevents.c Mon Apr 08 17:50:30 2002 +0000 +++ b/src/video/wincommon/SDL_sysevents.c Tue Apr 09 23:32:40 2002 +0000 @@ -190,6 +190,10 @@ BOOL minimized; Uint8 appstate; + if ( ! this->screen ) { + /* What do we do when we get the screen? */ + return(0); + } minimized = HIWORD(wParam); if ( !minimized && (LOWORD(wParam) != WA_INACTIVE) ) { /* Gain the following states */