1
0
Fork 0
forked from len0rd/rockbox

Fix FS #5852 by trying to properly close and update the recorded file, and give the FAT the correct file info. Add filehandle checks to some file functions.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15072 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2007-10-10 23:26:17 +00:00
parent bcdb3217de
commit 85058f5d9c
6 changed files with 33 additions and 6 deletions

View file

@ -901,7 +901,10 @@ static void pcmrec_flush(unsigned flush_num)
INC_ENC_INDEX(enc_rd_index);
if (errors != 0)
{
pcmrec_end_file();
break;
}
if (flush_num == PCMREC_FLUSH_MINI &&
++chunks_flushed >= MINI_CHUNKS)