From: Eli Zaretskii Date: Wed, 8 Apr 1998 13:48:30 +0000 (+0000) Subject: (init_dosfns): Fix bug in passing segment address of the transfer buffer. X-Git-Tag: emacs-20.3~1644 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7a2fd3696f4c45f303aa482df4e5b94642b23059;p=emacs.git (init_dosfns): Fix bug in passing segment address of the transfer buffer. --- diff --git a/src/dosfns.c b/src/dosfns.c index 630dcfe64c6..b1ba6063a37 100644 --- a/src/dosfns.c +++ b/src/dosfns.c @@ -302,7 +302,7 @@ init_dosfns () /* Obtain the country code via DPMI, use DJGPP transfer buffer. */ dpmiregs.x.ax = 0x3800; - dpmiregs.x.ds = xbuf; + dpmiregs.x.ds = xbuf >> 4; dpmiregs.x.dx = 0; dpmiregs.x.ss = dpmiregs.x.sp = dpmiregs.x.flags = 0; _go32_dpmi_simulate_int (0x21, &dpmiregs);