Fixed a crash bug in the WM_ACTIVATE code (thanks John!)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40334
This commit is contained in:
Sam Lantinga 2002-04-09 23:32:40 +00:00
parent ea22556441
commit 32452bff12

View file

@ -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 */