mirror of
https://github.com/yawut/SDL.git
synced 2026-09-10 01:56:15 -05:00
Fixed a crash bug in the WM_ACTIVATE code (thanks John!)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user