X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26a25f9523218117ab718b684ff514ad420b5aee..9ac71bef070f553f4ecef2c549dba33b10422f06:/src/common/sckipc.cpp diff --git a/src/common/sckipc.cpp b/src/common/sckipc.cpp index 372c1d627e..634fbd6ee2 100644 --- a/src/common/sckipc.cpp +++ b/src/common/sckipc.cpp @@ -260,7 +260,7 @@ bool wxTCPServer::Create(const wxString& serverName) { // ensure that the file doesn't exist as otherwise calling socket() would // fail - int rc = remove(serverName); + int rc = remove(serverName.fn_str()); if ( rc < 0 && errno != ENOENT ) { delete addr; @@ -321,7 +321,7 @@ wxTCPServer::~wxTCPServer() #ifdef __UNIX_LIKE__ if ( !m_filename.empty() ) { - if ( !remove(m_filename) ) + if ( remove(m_filename.fn_str()) != 0 ) { wxLogDebug(_T("Stale AF_UNIX file '%s' left."), m_filename.c_str()); }