fix a logical error

This commit is contained in:
minggo 2013-07-28 10:22:12 +08:00
parent 4f6e1fb944
commit e97b2504ea
1 changed files with 2 additions and 2 deletions

View File

@ -181,9 +181,9 @@ void TestSearchPath::onEnter()
if (fp)
{
size_t ret = fwrite(szBuf, 1, strlen(szBuf), fp);
CCASSERT(ret == 0, "fwrite function returned nonzero value");
CCASSERT(ret != 0, "fwrite function returned zero value");
fclose(fp);
if (ret == 0)
if (ret != 0)
log("Writing file to writable path succeed.");
}