PoChecker: fix crash caused by passing not enough parameters to Format().

Patch by Vaclav Valicek. Issue #0026167.

git-svn-id: trunk@45035 -
This commit is contained in:
bart 2014-05-14 10:15:01 +00:00
parent b305990772
commit a2286d1c09

View File

@ -247,9 +247,9 @@ begin
end end
else if not FileExistsUtf8(FChosenMasterName) then else if not FileExistsUtf8(FChosenMasterName) then
begin begin
ShowError(Format(sCannotFindMaster,[ExtractFileName(FChosenMasterName), ShortFn]));
FChosenMasterName := ''; FChosenMasterName := '';
FChosenChildName := ''; FChosenChildName := '';
ShowError(Format(sCannotFindMaster,[ShortFn]));
end; end;
end; end;
OK := (FChosenMasterName <> ''); OK := (FChosenMasterName <> '');