mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 04:01:37 +02:00
Don’t crash on empty path.
This commit is contained in:
parent
07f9113a7c
commit
88ca756f19
@ -962,6 +962,8 @@ begin
|
||||
Result := '';
|
||||
for Path in Paths do
|
||||
begin
|
||||
if Path = '' then
|
||||
continue;
|
||||
if ValidateParams and not TPath.HasValidPathChars(Path, False) then
|
||||
Raise EInOutArgumentException.CreateFmt(SErrInvalidCharsInPath,[Path],Path);
|
||||
{$ifdef mswindows}
|
||||
|
Loading…
Reference in New Issue
Block a user