[Scummvm-cvs-logs] SF.net SVN: scummvm:[33340] scummvm/trunk/backends/platform/symbian/src/ SymbianOS.cpp

anotherguest at users.sourceforge.net anotherguest at users.sourceforge.net
Sun Jul 27 20:22:24 CEST 2008


Revision: 33340
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33340&view=rev
Author:   anotherguest
Date:     2008-07-27 18:22:23 +0000 (Sun, 27 Jul 2008)

Log Message:
-----------
Fix for ftell error when caching. HOF now starts properly

Modified Paths:
--------------
    scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp

Modified: scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp
===================================================================
--- scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp	2008-07-27 14:36:53 UTC (rev 33339)
+++ scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp	2008-07-27 18:22:23 UTC (rev 33340)
@@ -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