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

This commit is contained in:
Sam Lantinga
2002-04-09 23:32:40 +00:00
parent 211c6f0489
commit cdcbaaccdc

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