]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_dosfns): Fix bug in passing segment address of the transfer buffer.
authorEli Zaretskii <eliz@gnu.org>
Wed, 8 Apr 1998 13:48:30 +0000 (13:48 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 8 Apr 1998 13:48:30 +0000 (13:48 +0000)
src/dosfns.c

index 630dcfe64c63d0dbd5040820313a189adbffa357..b1ba6063a3777852c9728cda856690043ed99cf3 100644 (file)
@@ -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);