mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 13:49:11 +02:00
amunits: actually, the DoMethodA() fix by Marcus added in r32699 is correct, and the old version was wrong. so remove remark about TODO, and leftovers of the old code.
git-svn-id: trunk@32704 -
This commit is contained in:
parent
c10272d879
commit
21352ca934
@ -362,14 +362,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function DoMethodA(obj : pObject_; msg : APTR): ulong;
|
function DoMethodA(obj : pObject_; msg : APTR): ulong;
|
||||||
//var
|
|
||||||
// o : p_Object;
|
|
||||||
begin
|
begin
|
||||||
if assigned(obj) then begin
|
if assigned(obj) then begin
|
||||||
//o := p_Object(obj);
|
DoMethodA := CallHookPkt(@THook(OCLASS(obj)^.cl_Dispatcher), obj, msg);
|
||||||
DoMethodA := CallHookPkt(PHook(OCLASS(obj)), obj, msg);
|
|
||||||
//TODO: Investigate why this call crashes and the other work, both do the same in principle
|
|
||||||
//DoMethodA := CallHookPkt(@o^.o_Class^.cl_Dispatcher, obj,msg);
|
|
||||||
end else DoMethodA := 0;
|
end else DoMethodA := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user