[Scummvm-cvs-logs] SF.net SVN: scummvm:[42159] tools/branches/gsoc2009-gui/util.cpp
Remere at users.sourceforge.net
Remere at users.sourceforge.net
Mon Jul 6 00:58:06 CEST 2009
Revision: 42159
http://scummvm.svn.sourceforge.net/scummvm/?rev=42159&view=rev
Author: Remere
Date: 2009-07-05 22:58:06 +0000 (Sun, 05 Jul 2009)
Log Message:
-----------
*Fixed error that prevented writes to files.
Modified Paths:
--------------
tools/branches/gsoc2009-gui/util.cpp
Modified: tools/branches/gsoc2009-gui/util.cpp
===================================================================
--- tools/branches/gsoc2009-gui/util.cpp 2009-07-05 22:57:58 UTC (rev 42158)
+++ tools/branches/gsoc2009-gui/util.cpp 2009-07-05 22:58:06 UTC (rev 42159)
@@ -383,7 +383,7 @@
if ((_mode & FILEMODE_WRITE) == 0)
throw FileException("Tried to write to a file opened in read mode (" + _name.getFullPath() + ")");
- if (fwrite(&b, 1, 1, _file) == 1)
+ if (fwrite(&b, 1, 1, _file) != 1)
throw FileException("Could not write to file (" + _name.getFullPath() + ")");
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list