projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12b5b4f
)
need to check for NULL as well....
author
Diederick Niehorster
<dcnieho@gmail.com>
Fri, 20 Jul 2012 06:48:05 +0000
(06:48 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Fri, 20 Jul 2012 06:48:05 +0000
(06:48 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1349
7f0cb862
-5218-0410-a997-
914c9d46530a
src/mswin/fg_main_mswin.c
patch
|
blob
|
history
diff --git
a/src/mswin/fg_main_mswin.c
b/src/mswin/fg_main_mswin.c
index
4fe5538
..
c777b46
100644
(file)
--- a/
src/mswin/fg_main_mswin.c
+++ b/
src/mswin/fg_main_mswin.c
@@
-251,7
+251,8
@@
LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
GetCursorPos( &mouse_pos );
ScreenToClient( 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 )