From 48378dc13167db53fe083878c651db508d30ba2d Mon Sep 17 00:00:00 2001 From: anders_k Date: Sat, 13 Oct 2018 13:19:12 +0000 Subject: [PATCH] Align @ direct register buffer git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7017 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/System/Source/System.c | 2 +- Contrib/System/System.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Contrib/System/Source/System.c b/Contrib/System/Source/System.c index dce1a097..a9a32f48 100644 --- a/Contrib/System/Source/System.c +++ b/Contrib/System/Source/System.c @@ -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; diff --git a/Contrib/System/System.html b/Contrib/System/System.html index a10845b2..2ff407b8 100644 --- a/Contrib/System/System.html +++ b/Contrib/System/System.html @@ -290,7 +290,7 @@ DetailPrint $4 callback @ -Direct register memory access (Buffer is limited to (NSIS_MAX_STRLEN - 21) * NSIS_CHAR_SIZE bytes) +Direct register memory access (Buffer is limited to (NSIS_MAX_STRLEN - 24) * NSIS_CHAR_SIZE bytes)