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
This commit is contained in:
Bart Oldeman 2004-05-10 19:44:52 +00:00
parent c65b5e3b53
commit 258877b44b

View File

@ -833,9 +833,7 @@ dispatch:
{ {
UWORD cntry = lr.AL; UWORD cntry = lr.AL;
if (cntry == 0) if (cntry == 0xff)
cntry = (UWORD) - 1;
else if (cntry == 0xff)
cntry = lr.BX; cntry = lr.BX;
if (0xffff == lr.DX) if (0xffff == lr.DX)
@ -846,6 +844,8 @@ dispatch:
} }
else else
{ {
if (cntry == 0)
cntry--;
/* Get Country Information */ /* Get Country Information */
if ((rc = DosGetCountryInformation(cntry, FP_DS_DX)) < 0) if ((rc = DosGetCountryInformation(cntry, FP_DS_DX)) < 0)
goto error_invalid; goto error_invalid;