mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 18:03:47 +02:00
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:
parent
b305990772
commit
a2286d1c09
@ -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 <> '');
|
||||||
|
Loading…
Reference in New Issue
Block a user