1
0
Fork 0
forked from len0rd/rockbox

Killed a warning (and a bug I introduced in the last commit)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3994 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2003-10-28 22:23:33 +00:00
parent 81f4b4fd4c
commit bfe9c5b608

View file

@ -1285,10 +1285,11 @@ int fat_closewrite(struct fat_file *file, int size, int attr)
}
}
if (file->dircluster)
if (file->dircluster) {
rc = update_short_entry(file, size, attr);
if (rc < 0)
return rc * 10 - 1;
}
flush_fat();