From 258877b44bf2acab3dc7187d2d907ba381967e08 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 10 May 2004 19:44:52 +0000 Subject: [PATCH] cntry == 0 doesn't make sense for Set Country Information (by Arkady) git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@927 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/inthndlr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/inthndlr.c b/kernel/inthndlr.c index 535f7b7..837e506 100644 --- a/kernel/inthndlr.c +++ b/kernel/inthndlr.c @@ -833,9 +833,7 @@ dispatch: { UWORD cntry = lr.AL; - if (cntry == 0) - cntry = (UWORD) - 1; - else if (cntry == 0xff) + if (cntry == 0xff) cntry = lr.BX; if (0xffff == lr.DX) @@ -846,6 +844,8 @@ dispatch: } else { + if (cntry == 0) + cntry--; /* Get Country Information */ if ((rc = DosGetCountryInformation(cntry, FP_DS_DX)) < 0) goto error_invalid;