diff --git a/doc.cpp b/doc.cpp index c1237924..6b4abbe5 100644 --- a/doc.cpp +++ b/doc.cpp @@ -4662,7 +4662,7 @@ pCmdUI->Enable (!m_strAutoSayString.IsEmpty ()); pCmdUI->SetCheck (m_bEnableAutoSay); } -const char * CMUSHclientDoc::GetSocketError (int nError) +CString CMUSHclientDoc::GetSocketError (int nError) { switch (nError) diff --git a/doc.h b/doc.h index 263a0c92..5440c7db 100644 --- a/doc.h +++ b/doc.h @@ -1837,7 +1837,7 @@ class CMUSHclientDoc : public CDocument void OnConnect(int nErrorCode); void HostNameResolved (WPARAM wParam, LPARAM lParam); - const char * GetSocketError (int nError); + CString GetSocketError (int nError); bool LookupHostName (LPCTSTR sName); void InitiateConnection (void); void ConnectionEstablished (void);