aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-02-07 14:16:33 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-02-07 14:16:33 -0800
commitb1e23e244b881b17b278dc54bacffb6b462a1e2d (patch)
treed67ed24a80d9af322ba03ab2beaff5d5234a4c3a
parentc8ef63c67deb196333d74cba74dfb96109c00321 (diff)
downloadsyslinux-b1e23e244b881b17b278dc54bacffb6b462a1e2d.tar.gz
syslinux-b1e23e244b881b17b278dc54bacffb6b462a1e2d.tar.xz
syslinux-b1e23e244b881b17b278dc54bacffb6b462a1e2d.zip
fileread: new file descriptor should be from oreg, not ireg
-rw-r--r--com32/lib/sys/fileread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/fileread.c b/com32/lib/sys/fileread.c
index cbdb8ce0..8fdd9167 100644
--- a/com32/lib/sys/fileread.c
+++ b/com32/lib/sys/fileread.c
@@ -64,7 +64,7 @@ ssize_t __file_read(struct file_info *fp, void *buf, size_t count)
return -1;
}
- fp->i.filedes = ireg.esi.w[0];
+ fp->i.filedes = oreg.esi.w[0];
fp->i.nbytes = min(fp->i.length-fp->i.offset, (unsigned)MAXBLOCK);
fp->i.datap = fp->i.buf;
memcpy(fp->i.buf, __com32.cs_bounce, fp->i.nbytes);