diff options
author | Lars Persson | 2008-07-27 18:22:23 +0000 |
---|---|---|
committer | Lars Persson | 2008-07-27 18:22:23 +0000 |
commit | ff64eb3756f75980333dbbb0d8cd25e22987310a (patch) | |
tree | 19f375c6a0e263ed76d75e544eea9847ea1daa71 /backends/platform | |
parent | cedbb6b2b23ef5d55c26022b7535cf3d248c5df7 (diff) | |
download | scummvm-rg350-ff64eb3756f75980333dbbb0d8cd25e22987310a.tar.gz scummvm-rg350-ff64eb3756f75980333dbbb0d8cd25e22987310a.tar.bz2 scummvm-rg350-ff64eb3756f75980333dbbb0d8cd25e22987310a.zip |
Fix for ftell error when caching. HOF now starts properly
svn-id: r33340
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index f3e1d843f5..e3a4027d79 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -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; } |