sntree / fullfat

Automatically exported from code.google.com/p/fullfat
Other
0 stars 0 forks source link

Bug (and fix) in FF_File.c #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In some conditions the failure of block read is NOT returned.
I think that this will solve the issue.

FF_FILE.C
line 1304

--------- FIXED CODE ----------
RetVal = FF_BlockRead(pIoman, nItemLBA, (FF_T_UINT32) sSectors, buffer, 
FF_FALSE);
if(FF_isERR(RetVal)) 
{
return RetVal;
}

--------- ORIGINAL CODE ----------

The current version test 
RetVal = FF_BlockRead(pIoman, nItemLBA, (FF_T_UINT32) sSectors, buffer, 
FF_FALSE);
if(FF_isERR(Error)

Original issue reported on code.google.com by klaasvor...@gmail.com on 23 Apr 2015 at 8:34