Instructor fixed handle leak in Locate
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4769 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
359fc5dc86
commit
723d9dcf9a
1 changed files with 32 additions and 18 deletions
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
_____________________________________________________________________________
|
_____________________________________________________________________________
|
||||||
|
|
||||||
File Functions Header v3.2
|
File Functions Header v3.4
|
||||||
_____________________________________________________________________________
|
_____________________________________________________________________________
|
||||||
|
|
||||||
2006 Shengalts Aleksander aka Instructor (Shengalts@mail.ru)
|
2006 Shengalts Aleksander aka Instructor (Shengalts@mail.ru)
|
||||||
|
@ -439,11 +439,13 @@ RefreshShellIcons
|
||||||
findfirst:
|
findfirst:
|
||||||
FindFirst $0 $R7 '$R8\$4'
|
FindFirst $0 $R7 '$R8\$4'
|
||||||
IfErrors subdir
|
IfErrors subdir
|
||||||
StrCmp $R7 '.' 0 +5
|
StrCmp $R7 '.' 0 dir
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
StrCmp $R7 '..' 0 +3
|
StrCmp $R7 '..' 0 dir
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
IfErrors subdir
|
IfErrors 0 dir
|
||||||
|
FindClose $0
|
||||||
|
goto subdir
|
||||||
|
|
||||||
dir:
|
dir:
|
||||||
IfFileExists '$R8\$R7\*.*' 0 file
|
IfFileExists '$R8\$R7\*.*' 0 file
|
||||||
|
@ -512,9 +514,13 @@ RefreshShellIcons
|
||||||
Pop $2
|
Pop $2
|
||||||
Pop $1
|
Pop $1
|
||||||
Pop $0
|
Pop $0
|
||||||
IfErrors error
|
|
||||||
|
|
||||||
StrCmp $R9 'StopLocate' clearstack
|
IfErrors 0 +3
|
||||||
|
FindClose $0
|
||||||
|
goto error
|
||||||
|
StrCmp $R9 'StopLocate' 0 +3
|
||||||
|
FindClose $0
|
||||||
|
goto clearstack
|
||||||
goto $9
|
goto $9
|
||||||
|
|
||||||
findnext:
|
findnext:
|
||||||
|
@ -526,17 +532,20 @@ RefreshShellIcons
|
||||||
StrCpy $9 $7 2
|
StrCpy $9 $7 2
|
||||||
StrCmp $9 'G0' end
|
StrCmp $9 'G0' end
|
||||||
FindFirst $0 $R7 '$R8\*.*'
|
FindFirst $0 $R7 '$R8\*.*'
|
||||||
StrCmp $R7 '.' 0 +5
|
StrCmp $R7 '.' 0 pushdir
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
StrCmp $R7 '..' 0 +3
|
StrCmp $R7 '..' 0 pushdir
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
IfErrors +7
|
IfErrors 0 pushdir
|
||||||
|
FindClose $0
|
||||||
|
StrCmp $8 0 end nextdir
|
||||||
|
|
||||||
|
pushdir:
|
||||||
IfFileExists '$R8\$R7\*.*' 0 +3
|
IfFileExists '$R8\$R7\*.*' 0 +3
|
||||||
Push '$R8\$R7'
|
Push '$R8\$R7'
|
||||||
IntOp $8 $8 + 1
|
IntOp $8 $8 + 1
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
IfErrors 0 -4
|
IfErrors 0 pushdir
|
||||||
FindClose $0
|
FindClose $0
|
||||||
StrCmp $8 0 end nextdir
|
StrCmp $8 0 end nextdir
|
||||||
|
|
||||||
|
@ -700,11 +709,13 @@ RefreshShellIcons
|
||||||
Pop $R8
|
Pop $R8
|
||||||
FindFirst $0 $R7 '$R8\$4'
|
FindFirst $0 $R7 '$R8\$4'
|
||||||
IfErrors show
|
IfErrors show
|
||||||
StrCmp $R7 '.' 0 +5
|
StrCmp $R7 '.' 0 dir
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
StrCmp $R7 '..' 0 +3
|
StrCmp $R7 '..' 0 dir
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
IfErrors show
|
IfErrors 0 dir
|
||||||
|
FindClose $0
|
||||||
|
goto show
|
||||||
|
|
||||||
dir:
|
dir:
|
||||||
IfFileExists '$R8\$R7\*.*' 0 file
|
IfFileExists '$R8\$R7\*.*' 0 file
|
||||||
|
@ -745,19 +756,22 @@ RefreshShellIcons
|
||||||
subdir:
|
subdir:
|
||||||
StrCmp $7 0 preend
|
StrCmp $7 0 preend
|
||||||
FindFirst $0 $R7 '$R8\*.*'
|
FindFirst $0 $R7 '$R8\*.*'
|
||||||
StrCmp $R7 '.' 0 +5
|
StrCmp $R7 '.' 0 pushdir
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
StrCmp $R7 '..' 0 +3
|
StrCmp $R7 '..' 0 pushdir
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
IfErrors +7
|
IfErrors 0 pushdir
|
||||||
|
FindClose $0
|
||||||
|
StrCmp $8 0 preend nextdir
|
||||||
|
|
||||||
|
pushdir:
|
||||||
IfFileExists '$R8\$R7\*.*' 0 +3
|
IfFileExists '$R8\$R7\*.*' 0 +3
|
||||||
Push '$R8\$R7'
|
Push '$R8\$R7'
|
||||||
IntOp $8 $8 + 1
|
IntOp $8 $8 + 1
|
||||||
FindNext $0 $R7
|
FindNext $0 $R7
|
||||||
IfErrors 0 -4
|
IfErrors 0 pushdir
|
||||||
FindClose $0
|
FindClose $0
|
||||||
StrCmp $8 0 0 nextdir
|
StrCmp $8 0 preend nextdir
|
||||||
|
|
||||||
preend:
|
preend:
|
||||||
StrCmp $R3 '' nosizeend
|
StrCmp $R3 '' nosizeend
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue