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:
parent
81f4b4fd4c
commit
bfe9c5b608
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue