Skip to content

Commit 441cbf9

Browse files
committed
Fixed crash if unable to connect to world
1 parent 73c84f0 commit 441cbf9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4662,7 +4662,7 @@ pCmdUI->Enable (!m_strAutoSayString.IsEmpty ());
46624662
pCmdUI->SetCheck (m_bEnableAutoSay);
46634663
}
46644664

4665-
const char * CMUSHclientDoc::GetSocketError (int nError)
4665+
CString CMUSHclientDoc::GetSocketError (int nError)
46664666
{
46674667

46684668
switch (nError)

doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ class CMUSHclientDoc : public CDocument
18371837

18381838
void OnConnect(int nErrorCode);
18391839
void HostNameResolved (WPARAM wParam, LPARAM lParam);
1840-
const char * GetSocketError (int nError);
1840+
CString GetSocketError (int nError);
18411841
bool LookupHostName (LPCTSTR sName);
18421842
void InitiateConnection (void);
18431843
void ConnectionEstablished (void);

0 commit comments

Comments
 (0)