Jim Park's Unicode NSIS merging - Step 1 : switch to TCHARs where relevant.
Compiler output is identical before & after this step git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/branches/wizou@6036 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4e48722b63
commit
752d7d239a
209 changed files with 9698 additions and 7658 deletions
|
@ -12,6 +12,8 @@
|
|||
*
|
||||
* This software is provided 'as-is', without any express or implied
|
||||
* warranty.
|
||||
*
|
||||
* Unicode support by Jim Park -- 08/13/2007
|
||||
*/
|
||||
|
||||
#include "fileform.h"
|
||||
|
@ -184,6 +186,7 @@ void lang_table_writer::write(const unsigned char *data)
|
|||
void lang_table_writer::write_block(IGrowBuf *buf, writer_sink *sink, const size_t table_size)
|
||||
{
|
||||
unsigned char *tables = (unsigned char *) buf->get();
|
||||
// langtable has LANGID(WORD) + dlgoffset(int) + right-to-left(int) + string pointers.
|
||||
size_t lang_strings = ( table_size - 2 * sizeof(int) - sizeof(LANGID) ) / sizeof(int);
|
||||
size_t l = buf->getlen() / table_size;
|
||||
lang_table_writer writer(sink, lang_strings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue