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:
parent
b4aed82f4c
commit
ac9b9f6aa1
1 changed files with 7 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue