aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorVladimir2011-06-08 02:53:35 +0400
committerAlyssa Milburn2011-06-15 17:32:42 +0200
commit6a2ac8728c26b70ecd810999a8dab983b8a12bc7 (patch)
tree8de841576f4b2e9e79b7eac92ea9424a03b7edff /engines/dreamweb
parent5d6be069e9a4bf62b217778b9e54b089e42a28b6 (diff)
downloadscummvm-rg350-6a2ac8728c26b70ecd810999a8dab983b8a12bc7.tar.gz
scummvm-rg350-6a2ac8728c26b70ecd810999a8dab983b8a12bc7.tar.bz2
scummvm-rg350-6a2ac8728c26b70ecd810999a8dab983b8a12bc7.zip
DREAMWEB: fixed invalid file read length
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/dreamweb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 0225a1b772..8e1b04bfa1 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -196,8 +196,8 @@ void setkeyboardint(Context &context) {
void readfromfile(Context &context) {
uint16 dst_offset = context.dx;
- uint16 size = context.bx;
- debug(1, "readfromfile(ds:%u, %u)", dst_offset, size);
+ uint16 size = context.cx;
+ debug(1, "readfromfile(%04x:%u, %u)", (uint16)context.ds, dst_offset, size);
engine()->readFromFile(context.ds.ptr(dst_offset, size), size);
context.flags._c = false; //fixme: add return args
}