[NLS2TXT] Add missed check for default char
[reactos.git] / rosapps / applications / devutils / txt2nls / nls.c
index d2b75d0..6067736 100644 (file)
@@ -178,7 +178,7 @@ nls_from_txt(const char *txt_file_path, const char *nls_file_path)
     }
 
     /* OEM glyph table size in words */
-    size = (glyph_table ? (256 * sizeof(uint16_t)) : 0);
+    size = (glyph_table ? 256 : 0);
 
     if (fwrite(&size, 1, sizeof(size), file) != sizeof(size))
     {