aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2012-05-26 19:06:54 +0300
committerFilippos Karapetis2012-05-26 19:06:54 +0300
commite77fc29101dfec7e5e35559783dd4e729df8a0c7 (patch)
treeae8810a93a4e8b29b9a0763d22329814c20ca799 /engines/sci
parentf15582b190baeae3ab1ddf2b6fc9dc305810f5f0 (diff)
downloadscummvm-rg350-e77fc29101dfec7e5e35559783dd4e729df8a0c7.tar.gz
scummvm-rg350-e77fc29101dfec7e5e35559783dd4e729df8a0c7.tar.bz2
scummvm-rg350-e77fc29101dfec7e5e35559783dd4e729df8a0c7.zip
SCI: Add a TODO in kFileIOReadRaw
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kfile.cpp3
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);
}