1
0
Fork 0
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:
Björn Stenberg 2002-11-05 16:15:47 +00:00
parent 0e51fefda6
commit 62085b1bc0

View file

@ -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;