Fix for mbsetup
This commit is contained in:
parent
f10a39a9e7
commit
366cce3858
@ -110,6 +110,8 @@ v0.51.2 06-Mar-2004
|
|||||||
sync calls.
|
sync calls.
|
||||||
In several menus that can change paths, a command to mbtask is
|
In several menus that can change paths, a command to mbtask is
|
||||||
given to reread filesystem tables when something is changed.
|
given to reread filesystem tables when something is changed.
|
||||||
|
Fixed error if a file area is deleted that has an empty files
|
||||||
|
database.
|
||||||
|
|
||||||
mbmon:
|
mbmon:
|
||||||
Switched to use new filesystems command.
|
Switched to use new filesystems command.
|
||||||
|
@ -371,13 +371,14 @@ int EditFileRec(int Area)
|
|||||||
* Attempt to disable this area, but check first.
|
* Attempt to disable this area, but check first.
|
||||||
*/
|
*/
|
||||||
if ((fp = fopen(temp, "r"))) {
|
if ((fp = fopen(temp, "r"))) {
|
||||||
fread(&fdbhdr, sizeof(fdbhdr), 1, fp);
|
if (fread(&fdbhdr, sizeof(fdbhdr), 1, fp) == 1) {
|
||||||
fseek(fp, 0, SEEK_END);
|
fseek(fp, 0, SEEK_END);
|
||||||
files = ((ftell(fp) - fdbhdr.hdrsize) / fdbhdr.recsize);
|
files = ((ftell(fp) - fdbhdr.hdrsize) / fdbhdr.recsize);
|
||||||
if (files) {
|
if (files) {
|
||||||
errmsg("There are stil %d files in this area", files);
|
errmsg("There are stil %d files in this area", files);
|
||||||
Available = TRUE;
|
Available = TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
if (!Available) {
|
if (!Available) {
|
||||||
|
Reference in New Issue
Block a user