src/video/wincommon/SDL_sysevents.c
changeset 333 f2ba51f64d49
parent 332 3d6dd1b7b7ba
child 335 bc4d50d2edd9
--- 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 */