Skip to content

Commit

Permalink
Changed variable scope
Browse files Browse the repository at this point in the history
  • Loading branch information
genius257 committed Aug 6, 2022
1 parent 14efe45 commit 0205c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vector.au3
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ Func __Vector_at($vObject, $iIndex, $pVariant = Null)
__Vector_resize($vObject, $iIndex)
If @error <> 0 Then Return SetError(@error, @extended, Null)
EndIf
$tData = DllStructCreate(StringFormat("PTR[%d]", $tObject.Size), $tObject.Data)
Local $tData = DllStructCreate(StringFormat("PTR[%d]", $tObject.Size), $tObject.Data)
If $pVariant = Null Then Return DllStructGetData($tData, 1, $iIndex)
;FIXME: check if VariantClear and VariantInit should be called on destination first!
If __Vector_VariantCopy(DllStructGetData($tData, 1, $iIndex), $pVariant) <> $__g_Vector_S_OK Then Return $__g_Vector_DISP_E_EXCEPTION;TODO: create exception object?
Expand Down

0 comments on commit 0205c84

Please sign in to comment.