Fix for ftell error when caching. HOF now starts properly

svn-id: r33340
This commit is contained in:
Lars Persson 2008-07-27 18:22:23 +00:00
parent cedbb6b2b2
commit ff64eb3756

View file

@ -617,9 +617,13 @@ bool symbian_feof(FILE* handle) {
long int symbian_ftell(FILE* handle) {
TInt pos = 0;
TSymbianFileEntry* entry = ((TSymbianFileEntry*)(handle));
((TSymbianFileEntry*)(handle))->iFileHandle.Seek(ESeekCurrent, pos);
entry->iFileHandle.Seek(ESeekCurrent, pos);
if(entry->iInputPos != KErrNotFound)
{
pos+=(entry->iInputPos - entry->iInputBufferLen);
}
return pos;
}