Fixed a crash bug in the WM_ACTIVATE code (thanks John!)
authorSam Lantinga <slouken@libsdl.org>
Tue, 09 Apr 2002 23:32:40 +0000
changeset 333f2ba51f64d49
parent 332 3d6dd1b7b7ba
child 334 f65715bd8ad8
Fixed a crash bug in the WM_ACTIVATE code (thanks John!)
src/video/wincommon/SDL_sysevents.c
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Mon Apr 08 17:50:30 2002 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Tue Apr 09 23:32:40 2002 +0000
     1.3 @@ -190,6 +190,10 @@
     1.4  			BOOL minimized;
     1.5  			Uint8 appstate;
     1.6  
     1.7 +			if ( ! this->screen ) {
     1.8 +				/* What do we do when we get the screen? */
     1.9 +				return(0);
    1.10 +			}
    1.11  			minimized = HIWORD(wParam);
    1.12  			if ( !minimized && (LOWORD(wParam) != WA_INACTIVE) ) {
    1.13  				/* Gain the following states */