mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 21:09:11 +02:00
* more rangecheck fixing
git-svn-id: trunk@1676 -
This commit is contained in:
parent
a636570436
commit
9efae2700b
@ -18,7 +18,7 @@
|
|||||||
---------------------------------------------------------------------}
|
---------------------------------------------------------------------}
|
||||||
|
|
||||||
{ we so ugly things with tvararray here }
|
{ we so ugly things with tvararray here }
|
||||||
{$R-}
|
{$RANGECHECKS OFF}
|
||||||
|
|
||||||
Procedure SetUnlockResult (P : PVarArray; Res : HResult);
|
Procedure SetUnlockResult (P : PVarArray; Res : HResult);
|
||||||
|
|
||||||
@ -201,6 +201,7 @@ begin
|
|||||||
finally
|
finally
|
||||||
VariantClear(Tmp);
|
VariantClear(Tmp);
|
||||||
end;
|
end;
|
||||||
|
{$RANGECHECKS OFF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ ---------------------------------------------------------------------
|
{ ---------------------------------------------------------------------
|
||||||
@ -374,7 +375,7 @@ Function SafeArrayCreate(VarType, Dim: SizeInt; const Bounds: TVarArrayBoundArra
|
|||||||
Result:=nil;
|
Result:=nil;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Function SafeArrayAllocDescriptor(DimCount: SizeInt; var psa: PVarArray): HRESULT;stdcall;
|
Function SafeArrayAllocDescriptor(DimCount: SizeInt; var psa: PVarArray): HRESULT;stdcall;
|
||||||
begin
|
begin
|
||||||
@ -392,7 +393,7 @@ Function SafeArrayAllocData(psa: PVarArray): HRESULT;stdcall;
|
|||||||
begin
|
begin
|
||||||
try
|
try
|
||||||
With psa^ do
|
With psa^ do
|
||||||
begin
|
begin
|
||||||
Data:=GetMem(SafeArrayElementTotal(psa)*ElementSize);
|
Data:=GetMem(SafeArrayElementTotal(psa)*ElementSize);
|
||||||
fillchar(Data^,SafeArrayElementTotal(psa)*ElementSize,0);
|
fillchar(Data^,SafeArrayElementTotal(psa)*ElementSize,0);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user