need to check for NULL as well....
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1349 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
dd8e935408
commit
a8ab2ae562
@ -251,7 +251,8 @@ LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
|
|||||||
GetCursorPos( &mouse_pos );
|
GetCursorPos( &mouse_pos );
|
||||||
ScreenToClient( window->Window.Handle, &mouse_pos );
|
ScreenToClient( window->Window.Handle, &mouse_pos );
|
||||||
hwnd = ChildWindowFromPoint(window->Window.Handle, mouse_pos);
|
hwnd = ChildWindowFromPoint(window->Window.Handle, mouse_pos);
|
||||||
window = fgWindowByHandle(hwnd);
|
if (hwnd) /* can be NULL if mouse outside parent by the time we get here */
|
||||||
|
window = fgWindowByHandle(hwnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( window )
|
if ( window )
|
||||||
|
Reference in New Issue
Block a user