Skip to content
Permalink
Browse files
Fixed a crash bug in the WM_ACTIVATE code (thanks John!)
  • Loading branch information
slouken committed Apr 9, 2002
1 parent 02a30bb commit e42300806eff01237cd9cfce805a9145bc54227f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/video/wincommon/SDL_sysevents.c
@@ -190,6 +190,10 @@ LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
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 */

0 comments on commit e423008

Please sign in to comment.