2
0
Эх сурвалжийг харах

Added additional error checking

Brian Fiete 5 жил өмнө
parent
commit
ac9b9f6aa1

+ 7 - 0
IDEHelper/Backend/BeLibManger.cpp

@@ -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(),