Commit 32452bff authored by Sam Lantinga's avatar Sam Lantinga

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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40334
parent ea225564
...@@ -190,6 +190,10 @@ LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) ...@@ -190,6 +190,10 @@ LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
BOOL minimized; BOOL minimized;
Uint8 appstate; Uint8 appstate;
if ( ! this->screen ) {
/* What do we do when we get the screen? */
return(0);
}
minimized = HIWORD(wParam); minimized = HIWORD(wParam);
if ( !minimized && (LOWORD(wParam) != WA_INACTIVE) ) { if ( !minimized && (LOWORD(wParam) != WA_INACTIVE) ) {
/* Gain the following states */ /* Gain the following states */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment