Browse Source

* Fix 64-bit compilation (Bug ID 21874)

git-svn-id: trunk@21892 -
michael 13 years ago
parent
commit
8e00e50965
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/winunits-base/src/comobj.pp

+ 1 - 1
packages/winunits-base/src/comobj.pp

@@ -1699,7 +1699,7 @@ HKCR
         else
         else
         begin
         begin
           Result := TAutoObjectFactory(Factory).DispTypeInfo.Invoke(Pointer(
           Result := TAutoObjectFactory(Factory).DispTypeInfo.Invoke(Pointer(
-            Integer(Self) + TAutoObjectFactory(Factory).DispIntfEntry^.IOffset),
+            PtrUint(Self) + TAutoObjectFactory(Factory).DispIntfEntry^.IOffset),
             DispID, Flags, TDispParams(Params), PVariant(VarResult)^, PExcepInfo(ExcepInfo)^, PUINT(ArgErr)^);
             DispID, Flags, TDispParams(Params), PVariant(VarResult)^, PExcepInfo(ExcepInfo)^, PUINT(ArgErr)^);
         end;
         end;
       end;
       end;