[Scummvm-cvs-logs] SF.net SVN: scummvm:[33341] scummvm/branches/branch-0-12-0/backends/ platform/symbian/src/SymbianOS.cpp
anotherguest at users.sourceforge.net
anotherguest at users.sourceforge.net
Sun Jul 27 20:23:15 CEST 2008
Revision: 33341
http://scummvm.svn.sourceforge.net/scummvm/?rev=33341&view=rev
Author: anotherguest
Date: 2008-07-27 18:23:14 +0000 (Sun, 27 Jul 2008)
Log Message:
-----------
Fix for ftell error when caching. HOF now starts properly
Modified Paths:
--------------
scummvm/branches/branch-0-12-0/backends/platform/symbian/src/SymbianOS.cpp
Modified: scummvm/branches/branch-0-12-0/backends/platform/symbian/src/SymbianOS.cpp
===================================================================
--- scummvm/branches/branch-0-12-0/backends/platform/symbian/src/SymbianOS.cpp 2008-07-27 18:22:23 UTC (rev 33340)
+++ scummvm/branches/branch-0-12-0/backends/platform/symbian/src/SymbianOS.cpp 2008-07-27 18:23:14 UTC (rev 33341)
@@ -617,9 +617,13 @@
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list