aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-04-26 11:56:25 +0000
committerRichard M. Stallman1996-04-26 11:56:25 +0000
commit6c05ef1e11c64d4c6eeddf105ad8e8692182d57c (patch)
tree4bf5e808129c945b0e6eae8539aeb77aa3a7717b /src
parentc7d031edbe8c79b1e20f9632471b928147adf4df (diff)
downloademacs-6c05ef1e11c64d4c6eeddf105ad8e8692182d57c.tar.gz
emacs-6c05ef1e11c64d4c6eeddf105ad8e8692182d57c.zip
(getdefdir) [DJGPP > 1]: Use 32-bit ESI to pass buffer
address to `intdos' instead of SI which can be 16-bit.
Diffstat (limited to 'src')
-rw-r--r--src/msdos.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 05f5f4670e4..c90e9766579 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -2093,7 +2093,14 @@ getdefdir (drive, dst)
2093 2093
2094 *dst++ = '/'; 2094 *dst++ = '/';
2095 regs.h.dl = drive; 2095 regs.h.dl = drive;
2096#if __DJGPP__ > 1
2097 /* regs.x.si can be 16 or 32 bits, depending on whether _NAIVE_DOS_REGS
2098 or _BORLAND_DOS_REGS have or haven't been defined. We should work
2099 with either, so use regs.d.esi which is always 32 bit-wide. */
2100 regs.d.esi = (int) dst;
2101#else
2096 regs.x.si = (int) dst; 2102 regs.x.si = (int) dst;
2103#endif
2097 regs.h.ah = 0x47; 2104 regs.h.ah = 0x47;
2098 intdos (&regs, &regs); 2105 intdos (&regs, &regs);
2099 return !regs.x.cflag; 2106 return !regs.x.cflag;