Fixed mbaff crash

This commit is contained in:
Michiel Broek 2004-05-30 10:54:02 +00:00
parent 06adb72ed2
commit be16a1798f
2 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,10 @@ v0.51.5 19-May-2004
converted so that the path information is removed, this is to converted so that the path information is removed, this is to
keep programs like FD (and maybe others) happy. keep programs like FD (and maybe others) happy.
mbaff:
Fixed a bug that crashed mbaff when new files are found in the
files database (uploads).
v0.51.4 11-Apr-2004 - 19-May-2004 v0.51.4 11-Apr-2004 - 19-May-2004

View File

@ -133,7 +133,7 @@ void Uploads()
if (mbsedb_LockFDB(fdb_area, 30)) { if (mbsedb_LockFDB(fdb_area, 30)) {
fseek(fdb_area->fp, - fdbhdr.recsize, SEEK_CUR); fseek(fdb_area->fp, - fdbhdr.recsize, SEEK_CUR);
fwrite(&fdb, fdbhdr.recsize, 1, fdb_area->fp); fwrite(&fdb, fdbhdr.recsize, 1, fdb_area->fp);
mbsedb_CloseFDB(fdb_area); mbsedb_UnlockFDB(fdb_area);
} }
} }
} }