fixed a bug in the handling of wCreateDataSize in CDialogTemplate::Save (thanks Sven Ritter)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3658 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9c8af69119
commit
64c1b0f05e
1 changed files with 3 additions and 2 deletions
|
@ -664,8 +664,9 @@ BYTE* CDialogTemplate::Save(DWORD& dwSize) {
|
||||||
|
|
||||||
// Write creation data variant length array
|
// Write creation data variant length array
|
||||||
// First write its size
|
// First write its size
|
||||||
if (m_vItems[i]->wCreateDataSize) m_vItems[i]->wCreateDataSize += sizeof(WORD);
|
WORD wCreateDataSize = m_vItems[i]->wCreateDataSize;
|
||||||
*(WORD*)seeker = m_vItems[i]->wCreateDataSize;
|
if (m_vItems[i]->wCreateDataSize) wCreateDataSize += sizeof(WORD);
|
||||||
|
*(WORD*)seeker = wCreateDataSize;
|
||||||
seeker += sizeof(WORD);
|
seeker += sizeof(WORD);
|
||||||
// If size is nonzero write the data too
|
// If size is nonzero write the data too
|
||||||
if (m_vItems[i]->wCreateDataSize) {
|
if (m_vItems[i]->wCreateDataSize) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue