Limit output to NSIS_MAX_STRLEN
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7271 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b20cd55d96
commit
08dffe5e8c
1 changed files with 3 additions and 3 deletions
|
@ -1395,8 +1395,8 @@ RefreshShellIcons
|
|||
Push $0
|
||||
Push $1
|
||||
Push $2
|
||||
System::Call 'kernel32::GetModuleFileName(p 0, t .r0, i 1024)'
|
||||
System::Call 'kernel32::GetLongPathName(t r0, t .r1, i 1024)i .r2'
|
||||
System::Call 'kernel32::GetModuleFileName(p 0, t.r0, i ${NSIS_MAX_STRLEN})'
|
||||
System::Call 'kernel32::GetLongPathName(t r0, t.r1, i ${NSIS_MAX_STRLEN})i.r2'
|
||||
StrCmp $2 error +2
|
||||
StrCpy $0 $1
|
||||
Pop $2
|
||||
|
@ -1423,7 +1423,7 @@ RefreshShellIcons
|
|||
Push $1
|
||||
Push $2
|
||||
StrCpy $0 $EXEDIR
|
||||
System::Call 'kernel32::GetLongPathName(t r0, t .r1, i 1024)i .r2'
|
||||
System::Call 'kernel32::GetLongPathName(t r0, t.r1, i ${NSIS_MAX_STRLEN})i.r2'
|
||||
StrCmp $2 error +2
|
||||
StrCpy $0 $1
|
||||
Pop $2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue