MG: added check if method exists

git-svn-id: trunk@3465 -
This commit is contained in:
lazarus 2002-10-04 23:35:51 +00:00
parent 368c58fc81
commit 22bf0ac14e

View File

@ -459,8 +459,9 @@ begin
JITForm.ClassName);
OldCode:=JITForm.MethodAddress(AName);
if OldCode<>nil then begin
Result.Code:=OldCode;
Result.Data:=JITForm;
Result.Code:=OldCode;
exit;
end;
CodeTemplate:=MethodAddress('DoNothing');
CodeSize:=100; // !!! what is the real codesize of DoNothing? !!!