Browse Source

* call initspecialchars if one of the specialchars is configured
for the first time

peter 20 years ago
parent
commit
36d97e9310
1 changed files with 5 additions and 4 deletions
  1. 5 4
      rtl/inc/objpas.inc

+ 5 - 4
rtl/inc/objpas.inc

@@ -616,7 +616,6 @@
           IEntry:=getinterfaceentry(iid);
           IEntry:=getinterfaceentry(iid);
           if Assigned(IEntry) then begin
           if Assigned(IEntry) then begin
             PPointer(@obj)^:=Pointer(Self)+IEntry^.IOffset;
             PPointer(@obj)^:=Pointer(Self)+IEntry^.IOffset;
-            intf_incr_ref(pointer(obj)); { it must be an com interface }
             getinterface:=True;
             getinterface:=True;
           end
           end
           else begin
           else begin
@@ -632,8 +631,6 @@
           IEntry:=getinterfaceentrybystr(iidstr);
           IEntry:=getinterfaceentrybystr(iidstr);
           if Assigned(IEntry) then begin
           if Assigned(IEntry) then begin
             PPointer(@obj)^:=Pointer(Self)+IEntry^.IOffset;
             PPointer(@obj)^:=Pointer(Self)+IEntry^.IOffset;
-            if Assigned(IEntry^.iid) then { for Com interfaces }
-              intf_incr_ref(pointer(obj));
             getinterfacebystr:=True;
             getinterfacebystr:=True;
           end
           end
           else begin
           else begin
@@ -761,7 +758,11 @@
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.47  2005-03-13 08:34:58  florian
+  Revision 1.48  2005-04-05 21:05:31  peter
+    * call initspecialchars if one of the specialchars is configured
+      for the first time
+
+  Revision 1.47  2005/03/13 08:34:58  florian
     * fixed FieldAddress for 64 bit and CPUs requiring proper alignment
     * fixed FieldAddress for 64 bit and CPUs requiring proper alignment
 
 
   Revision 1.46  2005/02/14 17:13:26  peter
   Revision 1.46  2005/02/14 17:13:26  peter