Commit 6c05ef1e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(getdefdir) [DJGPP > 1]: Use 32-bit ESI to pass buffer

address to `intdos' instead of SI which can be 16-bit.
parent c7d031ed
......@@ -2093,7 +2093,14 @@ getdefdir (drive, dst)
*dst++ = '/';
regs.h.dl = drive;
#if __DJGPP__ > 1
/* can be 16 or 32 bits, depending on whether _NAIVE_DOS_REGS
or _BORLAND_DOS_REGS have or haven't been defined. We should work
with either, so use regs.d.esi which is always 32 bit-wide. */
regs.d.esi = (int) dst;
#else = (int) dst;
regs.h.ah = 0x47;
intdos (&regs, &regs);
return !regs.x.cflag;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment