Merge pull request #3304 from minggo/develop

fix a logical error
This commit is contained in:
minggo 2013-07-27 19:23:00 -07:00
commit 25268bf604
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.");
}