From 67510491448078bfca888f39d8342f2cd055f81b Mon Sep 17 00:00:00 2001 From: shirait Date: Tue, 20 Nov 2007 05:37:57 +0000 Subject: [PATCH] =?UTF-8?q?Read=E6=99=82=E3=81=AB=E3=83=89=E3=83=A9?= =?UTF-8?q?=E3=82=A4=E3=83=90=E3=81=B8=E3=81=AE=E3=82=BB=E3=82=AF=E3=82=BF?= =?UTF-8?q?=E8=A6=81=E6=B1=82=E3=81=8C=E5=88=86=E5=89=B2=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@320 4ee2a332-4b2b-5046-8439-1ba90f034370 --- build/libraries/fatfs/ARM7/apifilio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/libraries/fatfs/ARM7/apifilio.c b/build/libraries/fatfs/ARM7/apifilio.c index deb4dd4..78f19a1 100644 --- a/build/libraries/fatfs/ARM7/apifilio.c +++ b/build/libraries/fatfs/ARM7/apifilio.c @@ -399,7 +399,7 @@ int po_read(PCFD fd, byte *in_buff, int count) /*__apifn__*/ /* how many clusters are left */ n_to_read = (n_left + 511) >> 9; - n_clusters = (CLUSTERTYPE) ((n_to_read+pdrive->secpalloc-1) >> pdrive->log2_secpalloc); + n_clusters = (CLUSTERTYPE) ((n_to_read+block_in_cluster+pdrive->secpalloc-1) >> pdrive->log2_secpalloc); // AICP modified /* how many contiguous clusters can we get ? <= n_clusters */ end_of_chain = 0;