SCI: Add a TODO in kFileIOReadRaw

This commit is contained in:
Filippos Karapetis committed 2012-05-26 19:06:54 +03:00
1 parent f15582b190
commit e77fc29101
1 file changed
+3
+3
View File
@@ -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);
}