From 25817293d1b526f72d833e3314ff30ad285707e2 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 21 Sep 2004 20:04:55 +0000 Subject: [PATCH] Make country info point to an empty table instead of reporting 0:0 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1986 --- src/dos/dos.cpp | 5 ++--- src/dos/dos_tables.cpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/dos/dos.cpp b/src/dos/dos.cpp index 9d618924..6ed77c35 100644 --- a/src/dos/dos.cpp +++ b/src/dos/dos.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos.cpp,v 1.74 2004-08-04 09:12:53 qbix79 Exp $ */ +/* $Id: dos.cpp,v 1.75 2004-09-21 20:04:55 qbix79 Exp $ */ #include #include @@ -847,8 +847,7 @@ static Bitu DOS_21Handler(void) { case 6: // Get pointer to collating sequence table case 7: // Get pointer to double byte char set table mem_writeb(data,reg_al); - mem_writew(data+1,0x0000); // We dont have this table... - mem_writew(data+3,0x0000); // End of table + mem_writed(data+1,dos.tables.dcbs); //used to be 0 reg_cx=5; CALLBACK_SCF(false); break; diff --git a/src/dos/dos_tables.cpp b/src/dos/dos_tables.cpp index cd04163f..0d41577b 100644 --- a/src/dos/dos_tables.cpp +++ b/src/dos/dos_tables.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_tables.cpp,v 1.14 2004-08-04 09:12:53 qbix79 Exp $ */ +/* $Id: dos_tables.cpp,v 1.15 2004-09-21 20:04:55 qbix79 Exp $ */ #include "dosbox.h" #include "mem.h" @@ -96,7 +96,7 @@ void DOS_SetupTables(void) { /* Allocate DCBS DOUBLE BYTE CHARACTER SET LEAD-BYTE TABLE */ dos.tables.dcbs=RealMake(DOS_GetMemory(12),0); - mem_writew(Real2Phys(dos.tables.dcbs),0); //empty table + mem_writed(Real2Phys(dos.tables.dcbs),0); //empty table /* Create a fake FCB SFT */ seg=DOS_GetMemory(4);