1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Added additional error checking

This commit is contained in:
Brian Fiete 2020-04-14 11:38:01 -07:00
parent b4aed82f4c
commit ac9b9f6aa1

View file

@ -246,6 +246,13 @@ bool BeLibFile::Finish()
return false;
}
if ((!mOldEntries.IsEmpty()) && (!mOldFileStream.IsOpen()))
{
// We failed to open the old stream but we still had old entries to references..
mFailed = true;
return false;
}
mFileStream.Write("!<arch>\n", 8);
std::sort(libEntries.begin(), libEntries.end(),