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:
parent
ea22556441
commit
32452bff12
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue