Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv32702/src/gui

Modified Files:
        wxFolderView.cpp 
Log Message:
attempt to fix crash due to header access reentrancies

Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.637
retrieving revision 1.638
diff -b -u -2 -r1.637 -r1.638
--- wxFolderView.cpp    12 Jul 2003 20:54:14 -0000      1.637
+++ wxFolderView.cpp    20 Jul 2003 00:35:00 -0000      1.638
@@ -514,4 +514,6 @@
              _T("invalid listctrl index") );
 
+      MLocker lock(((wxFolderListCtrl *)this)->m_mutexHeaders);
+
       return m_headers->GetItem((size_t)item)->GetUId();
    }
@@ -3394,10 +3396,5 @@
    if ( READ_CONFIG(m_Profile, MP_AUTOSHOW_SELECT) )
    {
-      HeaderInfoList_obj hil = GetFolder()->GetHeaders();
-
-      const HeaderInfo *hi = hil[idx];
-      CHECK_RET( hi, _T("Failed to get the uid of preselected message") );
-
-      UIdType uid = hi->GetUId();
+      UIdType uid = m_FolderCtrl->GetUIdFromIndex(idx);
       if ( uid != UID_ILLEGAL )
       {



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to