mirror of https://gitlab.com/basile.b/dexed.git
fix possible AV when scanning asteriskified path
This commit is contained in:
parent
c54ec43fbc
commit
c211a921a6
|
@ -578,6 +578,10 @@ var
|
|||
pth, ext, fname: string;
|
||||
files: TStringList;
|
||||
begin
|
||||
result := false;
|
||||
if aPath = '' then
|
||||
exit;
|
||||
//
|
||||
if aPath[length(aPath)] = '*' then
|
||||
begin
|
||||
pth := aPath[1..length(aPath)-1];
|
||||
|
|
Loading…
Reference in New Issue