Fix more warnings and #197

This commit is contained in:
Alexey Sokolov
2012-08-17 00:56:53 +07:00
parent 395ae4fc9f
commit 892727ba2c
6 changed files with 16 additions and 18 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ ssize_t CFile::Write(const char *pszBuffer, size_t iBytes) {
}
ssize_t res = write(m_iFD, pszBuffer, iBytes);
if (res != iBytes)
if (-1 == res)
m_bHadError = true;
return res;
}