From: Dmitry Chapyshev Date: Sat, 17 Sep 2016 12:18:28 +0000 (+0000) Subject: [TXT2NLS] Write correct size for wide char table X-Git-Tag: ReactOS-0.4.3~354 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=0d8a2edf6b5e0a8da60a6f926daaf494322e3553 [TXT2NLS] Write correct size for wide char table svn path=/trunk/; revision=72701 --- diff --git a/rosapps/applications/devutils/txt2nls/nls.c b/rosapps/applications/devutils/txt2nls/nls.c index 550e04c0d8f..d2b75d095d4 100644 --- a/rosapps/applications/devutils/txt2nls/nls.c +++ b/rosapps/applications/devutils/txt2nls/nls.c @@ -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;