Don’t crash on empty path.

This commit is contained in:
Rika Ichinose 2024-08-17 19:01:40 +03:00
parent 07f9113a7c
commit 88ca756f19

View File

@ -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}