[Scummvm-cvs-logs] SF.net SVN: scummvm:[50977] scummvm/trunk/engines/sci/engine/kfile.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Jul 18 06:25:57 CEST 2010


Revision: 50977
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50977&view=rev
Author:   m_kiewitz
Date:     2010-07-18 04:25:57 +0000 (Sun, 18 Jul 2010)

Log Message:
-----------
SCI: fix regression of r50896, behaviour of kFileIO(readString) is supposed to return the string instead of the size, fixes signature mismatch in hoyle 3

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kfile.cpp

Modified: scummvm/trunk/engines/sci/engine/kfile.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kfile.cpp	2010-07-18 03:25:58 UTC (rev 50976)
+++ scummvm/trunk/engines/sci/engine/kfile.cpp	2010-07-18 04:25:57 UTC (rev 50977)
@@ -817,7 +817,7 @@
 	fgets_wrapper(s, buf, size, handle);
 	s->_segMan->memcpy(argv[0], (const byte*)buf, size);
 	delete[] buf;
-	return argv[1];
+	return argv[0];
 }
 
 reg_t kFileIOWriteString(EngineState *s, int argc, reg_t *argv) {


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