From 62085b1bc04eb2dc63d26d9fa5660864bb00a388 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 5 Nov 2002 16:15:47 +0000 Subject: Corrected return value check. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2807 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/common') diff --git a/firmware/common/file.c b/firmware/common/file.c index 219858cff2..1dd71d98ae 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -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; -- cgit v1.2.3