avoid crash on null temp_window, thanks Phillip Kutin!
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1490 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
ff0366185f
commit
bbefe8aee0
@ -269,7 +269,7 @@ LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
|
||||
if (hwnd) /* can be NULL if mouse outside parent by the time we get here */
|
||||
{
|
||||
temp_window = fgWindowByHandle(hwnd);
|
||||
if (temp_window->Parent) /* Verify we got a child window */
|
||||
if (temp_window && temp_window->Parent) /* Verify we got a child window */
|
||||
child_window = temp_window;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user