fix, commonFolder bug caused issue when patching moved/renamed CE proj sources

This commit is contained in:
Basile Burg 2016-02-06 20:06:31 +01:00
parent 46780db9e0
commit 8359b19805
1 changed files with 6 additions and 3 deletions

View File

@ -1012,7 +1012,7 @@ begin
sink[i] := sink[i].extractFileDir;
end;
// common folder
while(true) do
while true do
begin
for i := sink.Count-1 downto 0 do
begin
@ -1023,10 +1023,13 @@ begin
else if j <> i then
sink.Delete(i);
end;
if sink.Count = 1 then
if sink.Count < 2 then
break;
end;
result := sink[0];
if sink.Count = 0 then
result := ''
else
result := sink[0];
finally
sink.free;
end;