Skip to content

Commit

Permalink
Fixed a crash bug in the WM_ACTIVATE code (thanks John!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 9, 2002
1 parent 02a30bb commit e423008
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/wincommon/SDL_sysevents.c
Expand Up @@ -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 */
Expand Down

0 comments on commit e423008

Please sign in to comment.