SL-20799 FIXED Viewer crashes when trying to save snapshot on disc without empty space

meow-7.2.2
Maxim Nikolenko 2024-01-12 14:04:46 +02:00 committed by GitHub
parent 5c412a2b70
commit 5771736bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2259,9 +2259,9 @@ bool LLImageFormatted::save(const std::string &filename)
return false;
}
outfile.write(getData(), getDataSize());
S32 result = outfile.write(getData(), getDataSize());
outfile.close() ;
return true;
return (result != 0);
}
S8 LLImageFormatted::getCodec() const