From effd87fafbe6530645267ff8f8092e00947990b9 Mon Sep 17 00:00:00 2001 From: lpproj Date: Sun, 29 Mar 2015 15:16:59 +0900 Subject: [PATCH] Return current country code (func 0x38) --- kernel/inthndlr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/inthndlr.c b/kernel/inthndlr.c index 5fb88d0..2aea32c 100644 --- a/kernel/inthndlr.c +++ b/kernel/inthndlr.c @@ -868,10 +868,8 @@ dispatch: rc = DosGetCountryInformation(cntry, FP_DS_DX); if (rc >= SUCCESS) { - /* HACK FIXME */ if (cntry == (UWORD) - 1) - cntry = 1; - /* END OF HACK */ + cntry = nlsInfo.actPkg->cntry; lr.AX = lr.BX = cntry; } }