File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -294,14 +294,16 @@ def generator(self, data):
294
294
for pf_header in data :
295
295
pf_file = '{0}-{1:X}.pf' .format (pf_header .Name , pf_header .Hash )
296
296
if self ._config .FULL_PATHS :
297
+ full_path = ""
297
298
for path in directories :
298
- full_path = "{0}\\ {1}" .format (path , pf_header .Name )
299
+ tmp_path = "{0}\\ {1}" .format (path , pf_header .Name )
299
300
if pf_header .Version == 17 :
300
- pf_hash = HashGenerator (full_path ).ssca_xp_hash_function ()
301
+ pf_hash = HashGenerator (tmp_path ).ssca_xp_hash_function ()
301
302
elif pf_header .Version == 23 :
302
- pf_hash = HashGenerator (full_path ).ssca_vista_hash_function ()
303
+ pf_hash = HashGenerator (tmp_path ).ssca_vista_hash_function ()
303
304
304
305
if "{0}" .format (pf_hash ) == "{0}" .format (pf_header .Hash ):
306
+ full_path = tmp_path
305
307
break
306
308
307
309
yield (0 , [str (pf_file ),
You can’t perform that action at this time.
0 commit comments