瀏覽代碼

* Fix 64-bit compilation (Bug ID 21874)

git-svn-id: trunk@21892 -
michael 13 年之前
父節點
當前提交
8e00e50965
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/winunits-base/src/comobj.pp

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

@@ -1699,7 +1699,7 @@ HKCR
         else
         begin
           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)^);
         end;
       end;