summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-04-16 18:01:03 +0300
committerTor Lillqvist <tml@collabora.com>2018-05-31 14:19:54 +0300
commitbbe55ee8e78b2e293234ea8d2b234c4cd7091aa1 (patch)
treed2874010a4c22580b0b04a1006fbd6ea39bd88f5 /extensions
parent05101334e6d15eb77782dfc36c2065561f7e57e6 (diff)
Use correct index for incoming Arguments sequence
Change-Id: I1c706a2139cb2596969c6c1d166d3f9fe9f91d39
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/unoobjw.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index 0ba804420174..f0e533a43025 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -2208,21 +2208,21 @@ Sink::Call( const OUString& Method, Sequence< Any >& Arguments )
case VT_BYREF|VT_I2:
{
SHORT *pI = (SHORT*)aDispParams.rgvarg[i].byref;
- Arguments[i] <<= (sal_Int16)*pI;
+ Arguments[nIncomingArgIndex] <<= (sal_Int16)*pI;
delete pI;
}
break;
case VT_BYREF|VT_I4:
{
LONG *pL = (LONG*)aDispParams.rgvarg[i].byref;
- Arguments[i] <<= (sal_Int32)*pL;
+ Arguments[nIncomingArgIndex] <<= (sal_Int32)*pL;
delete pL;
}
break;
case VT_BYREF|VT_BSTR:
{
BSTR *pBstr = (BSTR*)aDispParams.rgvarg[i].byref;
- Arguments[i] <<= OUString(o3tl::toU(*pBstr));
+ Arguments[nIncomingArgIndex] <<= OUString(o3tl::toU(*pBstr));
// Undo SysAllocString() done in anyToVariant()
SysFreeString(*pBstr);
delete pBstr;
@@ -2232,7 +2232,7 @@ Sink::Call( const OUString& Method, Sequence< Any >& Arguments )
{
VARIANT_BOOL *pBool = (VARIANT_BOOL*)aDispParams.rgvarg[i].byref;
// SAL_ DEBUG("===> VT_BOOL: byref is now " << aDispParams.rgvarg[i].byref << ", " << (int)*pBool);
- Arguments[i] <<= (sal_Bool)(*pBool != VARIANT_FALSE ? sal_True : sal_False);
+ Arguments[nIncomingArgIndex] <<= (sal_Bool)(*pBool != VARIANT_FALSE ? sal_True : sal_False);
delete pBool;
}
break;