workaround for GetLongPathName

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4197 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-07-28 16:56:33 +00:00
parent 9b9031e8d3
commit 0a0a90d5aa

View file

@ -1,7 +1,7 @@
/* /*
_____________________________________________________________________________ _____________________________________________________________________________
File Functions Header v2.6 File Functions Header v2.7
_____________________________________________________________________________ _____________________________________________________________________________
2005 Shengalts Aleksander aka Instructor (Shengalts@mail.ru) 2005 Shengalts Aleksander aka Instructor (Shengalts@mail.ru)
@ -1365,8 +1365,14 @@ RefreshShellIcons
Function ${_FILEFUNC_UN}GetExeName Function ${_FILEFUNC_UN}GetExeName
Push $0 Push $0
Push $1
Push $2
System::Call 'kernel32::GetModuleFileNameA(i 0, t .r0, i 1024)' System::Call 'kernel32::GetModuleFileNameA(i 0, t .r0, i 1024)'
#System::Call 'kernel32::GetLongPathNameA(t r0, t .r0, i 1024)' System::Call 'kernel32::GetLongPathNameA(t r0, t .r1, i 1024)i .r2'
StrCmp $2 error +2
StrCpy $0 $1
Pop $2
Pop $1
Exch $0 Exch $0
FunctionEnd FunctionEnd
@ -1384,8 +1390,14 @@ RefreshShellIcons
Function ${_FILEFUNC_UN}GetExePath Function ${_FILEFUNC_UN}GetExePath
Push $0 Push $0
Push $1
Push $2
StrCpy $0 $EXEDIR StrCpy $0 $EXEDIR
#System::Call 'kernel32::GetLongPathNameA(t r0, t .r0, i 1024)' System::Call 'kernel32::GetLongPathNameA(t r0, t .r1, i 1024)i .r2'
StrCmp $2 error +2
StrCpy $0 $1
Pop $2
Pop $1
Exch $0 Exch $0
FunctionEnd FunctionEnd