fix error check

This commit is contained in:
Glenn Maynard
2007-02-03 00:48:07 +00:00
parent de930d2900
commit 65bc007ec6
+1 -1
View File
@@ -245,7 +245,7 @@ bool NotesWriterSM::Write( RString sPath, const Song &out, bool bSavingCache )
RString sTag = GetSMNotesTag( out, *pSteps, bSavingCache ); RString sTag = GetSMNotesTag( out, *pSteps, bSavingCache );
f.PutLine( sTag ); f.PutLine( sTag );
} }
if( !f.Flush() ) if( f.Flush() == -1 )
return false; return false;
return true; return true;