Browse Source

Fix inverted logic when checking for file stream open

tags/1.9.8
falkTX 7 years ago
parent
commit
1666475bb3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/modules/water/files/File.cpp

+ 1
- 1
source/modules/water/files/File.cpp View File

@@ -756,7 +756,7 @@ bool File::appendText (const String& text,
const bool writeUnicodeHeaderBytes) const
{
FileOutputStream out (*this);
CARLA_SAFE_ASSERT (out.failedToOpen());
CARLA_SAFE_ASSERT_RETURN (! out.failedToOpen(), false);
out.writeText (text, asUnicode, writeUnicodeHeaderBytes);
return true;


Loading…
Cancel
Save