Align @ direct register buffer

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7017 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2018-10-13 13:19:12 +00:00
parent 000ce91737
commit 48378dc131
2 changed files with 2 additions and 2 deletions

View file

@ -1047,7 +1047,7 @@ void ParamsIn(SystemProc *proc)
{
LPTSTR straddr = system_getuservariableptr(par->Input - 1);
par->Value = (INT_PTR) straddr;
par->Value += sizeof(void*) > 4 ? sizeof(_T("-9223372036854775807")) : sizeof(_T("-2147483647"));
par->Value += sizeof(void*) > 4 ? sizeof(_T("-9223372036854775807###")) : sizeof(_T("-2147483647")); // "###" for sizeof(void*) alignment
IntPtrToStr(par->Value, straddr);
}
break;

View file

@ -290,7 +290,7 @@ DetailPrint $4
<td>callback</td>
</tr>
<th>@</th>
<td>Direct register memory access (Buffer is limited to <code>(NSIS_MAX_STRLEN - 21) * NSIS_CHAR_SIZE</code> bytes)</td>
<td>Direct register memory access (Buffer is limited to <code>(NSIS_MAX_STRLEN - 24) * NSIS_CHAR_SIZE</code> bytes)</td>
</tr>
<tr>
<tr>