[TXT2NLS] Write correct size for wide char table
authorDmitry Chapyshev <dmitry@reactos.org>
Sat, 17 Sep 2016 12:18:28 +0000 (12:18 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Sat, 17 Sep 2016 12:18:28 +0000 (12:18 +0000)
svn path=/trunk/; revision=72701

rosapps/applications/devutils/txt2nls/nls.c

index 550e04c..d2b75d0 100644 (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;