[TXT2NLS] Write correct size for wide char table

svn path=/trunk/; revision=72701
This commit is contained in:
Dmitry Chapyshev 2016-09-17 12:18:28 +00:00
parent 942c4eff2d
commit 0d8a2edf6b

View file

@ -213,7 +213,7 @@ nls_from_txt(const char *txt_file_path, const char *nls_file_path)
}
/* Write wide char table */
if (fwrite(wc_table, 1, (65535 * header.MaximumCharacterSize), file) != (65535 * header.MaximumCharacterSize))
if (fwrite(wc_table, 1, (65536 * header.MaximumCharacterSize), file) != (65536 * header.MaximumCharacterSize))
{
printf("Unable to write NLS file.\n");
goto Cleanup;