X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/142ae7b38820a89864bf4132ecb78c3d1152a253..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/msw/dialup.cpp?ds=sidebyside diff --git a/src/msw/dialup.cpp b/src/msw/dialup.cpp index b006bdbf37..4831acbc0f 100644 --- a/src/msw/dialup.cpp +++ b/src/msw/dialup.cpp @@ -40,6 +40,7 @@ #include "wx/generic/choicdgg.h" #include "wx/msw/private.h" +#include "wx/msw/private/hiddenwin.h" #include "wx/dynlib.h" wxDEFINE_EVENT( wxEVT_DIALUP_CONNECTED, wxDialUpEvent ); @@ -66,10 +67,6 @@ wxDEFINE_EVENT( wxEVT_DIALUP_DISCONNECTED, wxDialUpEvent ); #define INTERNET_CONNECTION_PROXY 4 #endif -// implemented in utils.cpp -extern "C" WXDLLIMPEXP_BASE HWND -wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc); - static const wxChar * wxMSWDIALUP_WNDCLASSNAME = wxT("_wxDialUpManager_Internal_Class"); static const wxChar *gs_classForDialUpWindow = NULL; @@ -597,11 +594,7 @@ void wxDialUpManagerMSW::CleanUpThreadData() m_hThread = 0; } - if ( m_data ) - { - delete m_data; - m_data = NULL; - } + wxDELETE(m_data); } // ---------------------------------------------------------------------------- @@ -837,7 +830,6 @@ bool wxDialUpManagerMSW::Dial(const wxString& nameOfISP, // default values for other fields rasDialParams.szPhoneNumber[0] = '\0'; rasDialParams.szCallbackNumber[0] = '\0'; - rasDialParams.szCallbackNumber[0] = '\0'; rasDialParams.szDomain[0] = '*'; rasDialParams.szDomain[1] = '\0'; @@ -1292,7 +1284,7 @@ static DWORD wxRasMonitorThread(wxRasThreadData *data) } // we don't need it any more now and if this thread ran, it is our - // responsability to free the data + // responsibility to free the data delete data; return 0;