fix null-deref
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -448,7 +448,7 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
|
||||
Point screenMouseLocation = cEvent.GetParameter<Point>(kEventParamMouseLocation) ;
|
||||
Point windowMouseLocation = screenMouseLocation ;
|
||||
|
||||
WindowRef window ;
|
||||
WindowRef window = NULL;
|
||||
short windowPart = ::FindWindow(screenMouseLocation, &window);
|
||||
|
||||
wxWindow* currentMouseWindow = NULL ;
|
||||
@@ -1433,8 +1433,8 @@ void wxTopLevelWindowMac::SetExtraStyle(long exStyle)
|
||||
#endif
|
||||
}
|
||||
|
||||
// TODO: switch to structure bounds -
|
||||
// we are still using coordinates of the content view
|
||||
// TODO: switch to structure bounds
|
||||
//
|
||||
void wxTopLevelWindowMac::MacGetContentAreaInset( int &left , int &top , int &right , int &bottom )
|
||||
{
|
||||
|
Reference in New Issue
Block a user