Tightened up error handling on some internal-error failures.

This commit is contained in:
Andy McFadden 2003-02-23 19:14:44 +00:00
parent 693ddd6d61
commit 53bb12944c

View File

@ -1172,6 +1172,7 @@ Nu_ConstructArchiveRecord(NuArchive* pArchive, NuRecord* pRecord)
/* verify that all threads and threadMods have been touched */ /* verify that all threads and threadMods have been touched */
if (!Nu_VerifyAllTouched(pArchive, pRecord)) { if (!Nu_VerifyAllTouched(pArchive, pRecord)) {
err = kNuErrInternal; err = kNuErrInternal;
Assert(0);
goto bail; goto bail;
} }
@ -1186,6 +1187,7 @@ Nu_ConstructArchiveRecord(NuArchive* pArchive, NuRecord* pRecord)
initialOffset, finalOffset, threadDisp); initialOffset, finalOffset, threadDisp);
err = kNuErrInternal; err = kNuErrInternal;
Assert(0); Assert(0);
goto bail;
} }
/* /*
@ -1395,6 +1397,7 @@ Nu_ConstructNewRecord(NuArchive* pArchive, NuRecord* pRecord, FILE* fp)
/* verify that all threads and threadMods have been touched */ /* verify that all threads and threadMods have been touched */
if (!Nu_VerifyAllTouched(pArchive, pRecord)) { if (!Nu_VerifyAllTouched(pArchive, pRecord)) {
err = kNuErrInternal; err = kNuErrInternal;
Assert(0);
goto bail; goto bail;
} }
@ -1409,6 +1412,7 @@ Nu_ConstructNewRecord(NuArchive* pArchive, NuRecord* pRecord, FILE* fp)
initialOffset, finalOffset, threadDisp); initialOffset, finalOffset, threadDisp);
err = kNuErrInternal; err = kNuErrInternal;
Assert(0); Assert(0);
goto bail;
} }
/* /*