diff options
author | Filippos Karapetis | 2012-05-26 19:06:54 +0300 |
---|---|---|
committer | Filippos Karapetis | 2012-05-26 19:06:54 +0300 |
commit | e77fc29101dfec7e5e35559783dd4e729df8a0c7 (patch) | |
tree | ae8810a93a4e8b29b9a0763d22329814c20ca799 | |
parent | f15582b190baeae3ab1ddf2b6fc9dc305810f5f0 (diff) | |
download | scummvm-rg350-e77fc29101dfec7e5e35559783dd4e729df8a0c7.tar.gz scummvm-rg350-e77fc29101dfec7e5e35559783dd4e729df8a0c7.tar.bz2 scummvm-rg350-e77fc29101dfec7e5e35559783dd4e729df8a0c7.zip |
SCI: Add a TODO in kFileIOReadRaw
-rw-r--r-- | engines/sci/engine/kfile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index b1f85227c1..8d1b078697 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -812,6 +812,9 @@ reg_t kFileIOReadRaw(EngineState *s, int argc, reg_t *argv) { FileHandle *f = getFileFromHandle(s, handle); if (f) { bytesRead = f->_in->read(buf, size); + // TODO: What happens if less bytes are read than what has + // been requested? (i.e. if bytesRead is non-zero, but still + // less than size) if (bytesRead > 0) s->_segMan->memcpy(argv[1], (const byte*)buf, size); } |