mirror of
https://github.com/scummvm/scummvm.git
synced 2026-11-18 21:34:48 +00:00
SCI: Add a TODO in kFileIOReadRaw
This commit is contained in:
1 parent
f15582b190
commit
e77fc29101
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user