diff options
author | Martin Kiewitz | 2010-07-18 04:25:57 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-18 04:25:57 +0000 |
commit | 525794927ed57fd18d3e713a5869f8fcde5ae2a9 (patch) | |
tree | 1b9ff37ea6191a35a0ab5a0306cf0d255f1e69dd /engines/sci/engine | |
parent | 88b2bec07239b2babc7041b1361873fd331ad838 (diff) | |
download | scummvm-rg350-525794927ed57fd18d3e713a5869f8fcde5ae2a9.tar.gz scummvm-rg350-525794927ed57fd18d3e713a5869f8fcde5ae2a9.tar.bz2 scummvm-rg350-525794927ed57fd18d3e713a5869f8fcde5ae2a9.zip |
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
svn-id: r50977
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index dd9241a375..2cd2c147bd 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -817,7 +817,7 @@ reg_t kFileIOReadString(EngineState *s, int argc, reg_t *argv) { 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) { |