LazUtils: fix crash in ExpandFilenameUtf8 (Issue #0029098).

git-svn-id: trunk@50519 -
This commit is contained in:
bart 2015-11-28 15:48:40 +00:00
parent f3ad3bf00d
commit 2a47550bba

View File

@ -928,7 +928,7 @@ begin
Fn := IncludeTrailingPathDelimiter(CurDir) + Fn
else
begin
if (Fn[1] = DirectorySeparator) then Delete(Fn,1,1);
if (Length(Fn) > 0) and (Fn[1] = DirectorySeparator) then Delete(Fn,1,1);
Fn := IncludeTrailingPathDelimiter(BaseDir) + Fn;
end;