]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckipc.cpp
Applied patch [ 601072 ] wxFileName::GetLongPath error & fix
[wxWidgets.git] / src / common / sckipc.cpp
index 822f96397e9cfe96167ce490ed26d2e05accd2f3..634fbd6ee21f5fece35a2d08a4dd6362c9002e90 100644 (file)
@@ -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) != 0 )
+        if ( remove(m_filename.fn_str()) != 0 )
         {
             wxLogDebug(_T("Stale AF_UNIX file '%s' left."), m_filename.c_str());
         }