forked from len0rd/rockbox
Corrected return value check.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2807 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0e51fefda6
commit
62085b1bc0
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ static int readwrite(int fd, void* buf, int count, bool write)
|
|||
}
|
||||
else {
|
||||
if ( fat_readwrite(&(openfiles[fd].fatfile), 1,
|
||||
&(openfiles[fd].cache),false) < 0 ) {
|
||||
&(openfiles[fd].cache),false) < 1 ) {
|
||||
DEBUGF("Failed caching sector\n");
|
||||
errno = EIO;
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue