diff --git a/indra/llfilesystem/llfilesystem.cpp b/indra/llfilesystem/llfilesystem.cpp index 69bfde5af0353f723dded53c7cc47f307d213ee7..a810cf1d36ca3530bc59e144b4e526bedc6731a8 100644 --- a/indra/llfilesystem/llfilesystem.cpp +++ b/indra/llfilesystem/llfilesystem.cpp @@ -80,7 +80,7 @@ BOOL LLFileSystem::read(U8* buffer, S32 bytes) { if (!mFile) { - LL_WARNS() << "Attempt to write to file " << mFileID << " that is not open" << LL_ENDL; + LL_WARNS() << "Attempt to read from file " << mFileID << " that is not open" << LL_ENDL; return FALSE; } diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 00bf76019aec8df72a306bac2ca9dbe46946f74b..a7af989851c18520f692a029f2d473098d4e3cd2 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -1355,7 +1355,7 @@ bool LLMeshRepoThread::loadInfoFromFilesystem(const LLUUID& mesh_id, MeshHeaderI { //check cache for mesh skin info LLFileSystem file(mesh_id, LLAssetType::AT_MESH); - if (file.getSize() >= info.mOffset + info.mSize) + if (file.open() && file.getSize() >= info.mOffset + info.mSize) { auto buffer = std::make_unique<U8[]>(info.mSize); if (!buffer)