fixed remove() return code test to avoid spurious debug error message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-04-15 19:46:14 +00:00
parent f4d7250ef1
commit 7e0a413dae

View File

@ -321,7 +321,7 @@ wxTCPServer::~wxTCPServer()
#ifdef __UNIX_LIKE__
if ( !m_filename.empty() )
{
if ( !remove(m_filename) )
if ( remove(m_filename) != 0 )
{
wxLogDebug(_T("Stale AF_UNIX file '%s' left."), m_filename.c_str());
}