mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-29 20:22:32 +02:00
rtl: TObject.SafeCallException and TComponent.SafeCallException has HResult return value. Fix default return value to catastrophic failure error code.
git-svn-id: trunk@14936 -
This commit is contained in:
parent
bfb7d91b74
commit
ea8bf4f2fd
@ -378,10 +378,10 @@
|
||||
end;
|
||||
|
||||
function TObject.SafeCallException(exceptobject : tobject;
|
||||
exceptaddr : pointer) : longint;
|
||||
exceptaddr : pointer) : HResult;
|
||||
|
||||
begin
|
||||
safecallexception:=0;
|
||||
safecallexception:=E_UNEXPECTED;
|
||||
end;
|
||||
|
||||
class function TObject.ClassInfo : pointer;
|
||||
|
@ -195,7 +195,7 @@
|
||||
class function newinstance : tobject;virtual;
|
||||
procedure FreeInstance;virtual;
|
||||
function SafeCallException(exceptobject : tobject;
|
||||
exceptaddr : pointer) : longint;virtual;
|
||||
exceptaddr : pointer) : HResult;virtual;
|
||||
procedure DefaultHandler(var message);virtual;
|
||||
|
||||
procedure Free;
|
||||
|
@ -1657,7 +1657,7 @@ type
|
||||
procedure InsertComponent(AComponent: TComponent);
|
||||
procedure RemoveComponent(AComponent: TComponent);
|
||||
function SafeCallException(ExceptObject: TObject;
|
||||
ExceptAddr: Pointer): Integer; override;
|
||||
ExceptAddr: Pointer): HResult; override;
|
||||
procedure SetSubComponent(ASubComponent: Boolean);
|
||||
function UpdateAction(Action: TBasicAction): Boolean; dynamic;
|
||||
// property ComObject: IUnknown read GetComObject;
|
||||
|
@ -608,10 +608,10 @@ end;
|
||||
|
||||
|
||||
Function TComponent.SafeCallException(ExceptObject: TObject;
|
||||
ExceptAddr: Pointer): Integer;
|
||||
ExceptAddr: Pointer): HResult;
|
||||
|
||||
begin
|
||||
SafeCallException:=0;
|
||||
SafeCallException:=inherited SafeCallException(ExceptObject, ExceptAddr);
|
||||
end;
|
||||
|
||||
procedure TComponent.SetSubComponent(ASubComponent: Boolean);
|
||||
|
Loading…
Reference in New Issue
Block a user