mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 05:40:20 +02:00
* getinterface fixed
This commit is contained in:
parent
e9b8c080bf
commit
3a6006367f
@ -614,11 +614,15 @@
|
||||
IEntry: pinterfaceentry;
|
||||
begin
|
||||
IEntry:=getinterfaceentry(iid);
|
||||
if Assigned(IEntry) then begin
|
||||
PPointer(@obj)^:=Pointer(Self)+IEntry^.IOffset;
|
||||
if Assigned(IEntry) then
|
||||
begin
|
||||
Pointer(obj):=Pointer(Self)+IEntry^.IOffset;
|
||||
if assigned(pointer(obj)) then
|
||||
iinterface(obj)._AddRef;
|
||||
getinterface:=True;
|
||||
end
|
||||
else begin
|
||||
else
|
||||
begin
|
||||
PPointer(@Obj)^:=nil;
|
||||
getinterface:=False;
|
||||
end;
|
||||
@ -629,11 +633,15 @@
|
||||
IEntry: pinterfaceentry;
|
||||
begin
|
||||
IEntry:=getinterfaceentrybystr(iidstr);
|
||||
if Assigned(IEntry) then begin
|
||||
PPointer(@obj)^:=Pointer(Self)+IEntry^.IOffset;
|
||||
if Assigned(IEntry) then
|
||||
begin
|
||||
Pointer(obj):=Pointer(Self)+IEntry^.IOffset;
|
||||
if assigned(pointer(obj)) then
|
||||
iinterface(obj)._AddRef;
|
||||
getinterfacebystr:=True;
|
||||
end
|
||||
else begin
|
||||
else
|
||||
begin
|
||||
PPointer(@Obj)^:=nil;
|
||||
getinterfacebystr:=False;
|
||||
end;
|
||||
@ -758,7 +766,10 @@
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.48 2005-04-05 21:05:31 peter
|
||||
Revision 1.49 2005-04-28 17:58:18 florian
|
||||
* getinterface fixed
|
||||
|
||||
Revision 1.48 2005/04/05 21:05:31 peter
|
||||
* call initspecialchars if one of the specialchars is configured
|
||||
for the first time
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user