Fix for ftell error when caching. HOF now starts properly
svn-id: r33340
This commit is contained in:
parent
cedbb6b2b2
commit
ff64eb3756
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue