chmhelp: Add resource protection block to TIpChmDataProvider.BuildURL

git-svn-id: trunk@56129 -
This commit is contained in:
wp 2017-10-18 17:49:55 +00:00
parent faa58c53b1
commit 11aad71dab

View File

@ -195,6 +195,7 @@ begin
end;
ParentDirs := GetDirsParents(OldURL);
try
RemoveDirCount := 0;
repeat
X := Pos('../', fNewURL);
@ -223,8 +224,10 @@ begin
Delete(Result, X, 1);
until X = 0;
finally
ParentDirs.Free;
//WriteLn('res = ', Result);
end;
end;
function TIpChmDataProvider.GetDirsParents(ADir: String): TStringList;