From 7a2fd3696f4c45f303aa482df4e5b94642b23059 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 8 Apr 1998 13:48:30 +0000 Subject: [PATCH] (init_dosfns): Fix bug in passing segment address of the transfer buffer. --- src/dosfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2