Fixed bug #1079, broken !define Unicode null terminator

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6409 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2013-08-15 21:22:17 +00:00
parent 6c283bde91
commit 51e2b07f05
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,8 @@ Released on ?
\b FileReadByte no longer performs a Unicode conversion on non-ASCII characters
\b Fixed !define Unicode null terminator bug (\W{http://sf.net/p/nsis/bugs/1079/}{bug #1079})
\b Fixed MakeNSISW default pushbutton and tab order
\H{v3.0a1} 3.0 Alpha 1

View file

@ -3121,7 +3121,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
}
}
define = line.gettoken_str(2);
file_buf.add(_T("\0"),1);
file_buf.add(_T("\0"),sizeof(TCHAR));
value = (TCHAR *)file_buf.get();
} else if (!_tcsicmp(define,_T("/math"))) {