when memory dumps out debug info, lookups can go wrong, since the list is not there anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f825dcd123
commit
46d0c7072f
@ -421,6 +421,8 @@ DEFINE_ONE_SHOT_HANDLER_GETTER( wxMacWindowEventHandler )
|
||||
wxList *wxWinMacWindowList = NULL;
|
||||
wxTopLevelWindowMac *wxFindWinFromMacWindow(WXWindow inWindowRef)
|
||||
{
|
||||
if ( wxWinMacWindowList == NULL )
|
||||
return NULL ;
|
||||
wxNode *node = wxWinMacWindowList->Find((long)inWindowRef);
|
||||
if (!node)
|
||||
return NULL;
|
||||
|
@ -421,6 +421,8 @@ DEFINE_ONE_SHOT_HANDLER_GETTER( wxMacWindowEventHandler )
|
||||
wxList *wxWinMacWindowList = NULL;
|
||||
wxTopLevelWindowMac *wxFindWinFromMacWindow(WXWindow inWindowRef)
|
||||
{
|
||||
if ( wxWinMacWindowList == NULL )
|
||||
return NULL ;
|
||||
wxNode *node = wxWinMacWindowList->Find((long)inWindowRef);
|
||||
if (!node)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user