Fix memory break on loading country information (in config.sys)

This commit is contained in:
lpproj 2015-09-22 12:15:26 +09:00
parent bc4615093a
commit 9f254f2bee
1 changed files with 2 additions and 1 deletions

View File

@ -1502,7 +1502,8 @@ STATIC BOOL LoadCountryInfo(char *filenam, UWORD ctryCode, UWORD codePage)
{"\377DBCS ", &nlsDBCSHardcoded} /* 7, not supported [yet] */
};
static struct subf_hdr hdr[8];
int fd, entries, count, i;
static int entries, count;
int fd, i;
char *filename = filenam == NULL ? "\\COUNTRY.SYS" : filenam;
BOOL rc = FALSE;