* fixed crash when calling a procvar with too many parameters

(mantis 8109)

git-svn-id: trunk@5951 -
This commit is contained in:
Jonas Maebe 2007-01-13 18:38:04 +00:00
parent c0eb91ffc8
commit 38d54234d7
2 changed files with 2 additions and 1 deletions

View File

@ -1892,7 +1892,7 @@ implementation
begin
if assigned(pt) then
current_filepos:=pt.fileinfo;
CGMessage1(parser_e_wrong_parameter_size,symtableprocentry.realname);
CGMessage1(parser_e_wrong_parameter_size,'<Procedure Variable>');
goto errorexit;
end;
end

View File

@ -12,4 +12,5 @@ var
begin
Proc(a, b);
Proc(a, b, a, b);
end.