瀏覽代碼

* Classes unit functions related to exceptions and stacktraces updated to use CodePointer

git-svn-id: trunk@25516 -
nickysn 12 年之前
父節點
當前提交
fccbbd92b2
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      rtl/objpas/classes/classesh.inc
  2. 1 1
      rtl/objpas/classes/compon.inc

+ 2 - 2
rtl/objpas/classes/classesh.inc

@@ -1692,7 +1692,7 @@ type
       NameCount, LocaleID: Integer; DispIDs: Pointer): HResult; stdcall;
     function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer;
       Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): HResult; stdcall;
-    function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult;
+    function SafeCallException(ExceptObject: TObject; ExceptAddr: CodePointer): HResult;
     procedure FreeOnRelease;
   end;
 
@@ -1809,7 +1809,7 @@ type
     procedure InsertComponent(AComponent: TComponent);
     procedure RemoveComponent(AComponent: TComponent);
     function SafeCallException(ExceptObject: TObject;
-      ExceptAddr: Pointer): HResult; override;
+      ExceptAddr: CodePointer): HResult; override;
     procedure SetSubComponent(ASubComponent: Boolean);
     function UpdateAction(Action: TBasicAction): Boolean; dynamic;
     property ComObject: IUnknown read GetComObject;

+ 1 - 1
rtl/objpas/classes/compon.inc

@@ -622,7 +622,7 @@ end;
 
 
 Function  TComponent.SafeCallException(ExceptObject: TObject;
-  ExceptAddr: Pointer): HResult;
+  ExceptAddr: CodePointer): HResult;
 begin
   if Assigned(VCLComObject) then
     Result := IVCLComObject(VCLComObject).SafeCallException(ExceptObject, ExceptAddr)