* block_header::offset is now pointer sized in exehead
* Wininet.h -> wininet.h for POSIX git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6608 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
286edd20c4
commit
940277d9d8
10 changed files with 83 additions and 41 deletions
|
@ -59,7 +59,7 @@ void writer_sink::write_int_array(const int i[], const size_t len)
|
|||
void writer_sink::write_string(const TCHAR *s, size_t size)
|
||||
{
|
||||
#ifdef _UNICODE
|
||||
if (m_build_unicode)
|
||||
if (m_ti.is_unicode())
|
||||
{
|
||||
bool strEnd = false;
|
||||
TCHAR ch = L'\0';
|
||||
|
@ -83,6 +83,7 @@ void writer_sink::write_string(const TCHAR *s, size_t size)
|
|||
delete [] wb;
|
||||
}
|
||||
#else
|
||||
//TODO: Why does this allocate memory? It could just write the string and a manual zero character?
|
||||
char *wb = new char[size];
|
||||
memset(wb, 0, size);
|
||||
strncpy(wb, s, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue