From: SourceForge.net <no...@so...> - 2005-12-09 20:45:39
|
Bugs item #1377363, was opened at 2005-12-09 12:45 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=1377363&group_id=51305 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: jas (ei2pi) Assigned to: Nobody/Anonymous (nobody) Summary: wxhttpengine 2.0 crash in wxProxySettingsDlg Initial Comment: If wxProxySettingsDlg is called with bShowNoProxyFor=false, there is an access violation when the uninitialized m_tcExceptions is used during Get/SetProxySettings. --- proxysettingsdlg.cpp.orig Sat Nov 26 20:55:29 2005 +++ proxysettingsdlg.cpp Fri Dec 9 11:26:10 2005 @@ -47,6 +47,7 @@ { m_stExceptionsDesc = NULL; m_stExceptionsNote = NULL; + m_tcExceptions = NULL; wxBoxSizer *sizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *hsizer = NULL; @@ -179,7 +180,8 @@ //! Set exceptions list as string void wxProxySettingsDlg::SetExceptions(const wxString &exceptions) { - m_tcExceptions->SetValue( exceptions ); + if( m_tcExceptions ) + m_tcExceptions->SetValue( exceptions ); } void wxProxySettingsDlg::SetProxySettings(const wxProxySettings &settings) @@ -222,7 +224,10 @@ //! Get exceptions string wxString wxProxySettingsDlg::GetExceptions() { - return m_tcExceptions->GetValue(); + if( m_tcExceptions ) + return m_tcExceptions->GetValue(); + else + return wxEmptyString; } wxProxySettings wxProxySettingsDlg:: GetProxySettings(void) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=1377363&group_id=51305 |