]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
Stuff needed for the font sample to build with VC++
[wxWidgets.git] / src / msw / treectrl.cpp
index f1cfce1fd9ecb912ea83b5aeb8a0619fff8d4d05..4444b261809175d10dad0fcdcb9c3c8b64d4360c 100644 (file)
@@ -1409,6 +1409,8 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
 
                 event.m_item = (WXHTREEITEM)info->item.hItem;
                 event.m_label = info->item.pszText;
+                if (info->item.pszText == NULL)
+                    return FALSE;
                 break;
             }