Commit d46cc363 authored by Daniel Remenak's avatar Daniel Remenak Committed by Alexandre Julliard

Remove unused variable in _copy_arg.

parent 8c37f436
...@@ -4516,7 +4516,6 @@ _copy_arg( ITypeInfo2 *tinfo, TYPEDESC *tdesc, ...@@ -4516,7 +4516,6 @@ _copy_arg( ITypeInfo2 *tinfo, TYPEDESC *tdesc,
DWORD *argpos, VARIANT *arg, VARTYPE vt DWORD *argpos, VARIANT *arg, VARTYPE vt
) { ) {
UINT arglen = _argsize(vt)*sizeof(DWORD); UINT arglen = _argsize(vt)*sizeof(DWORD);
VARTYPE oldvt;
VARIANT va; VARIANT va;
if ((vt==VT_PTR) && tdesc && (tdesc->u.lptdesc->vt == VT_VARIANT)) { if ((vt==VT_PTR) && tdesc && (tdesc->u.lptdesc->vt == VT_VARIANT)) {
...@@ -4650,7 +4649,6 @@ _copy_arg( ITypeInfo2 *tinfo, TYPEDESC *tdesc, ...@@ -4650,7 +4649,6 @@ _copy_arg( ITypeInfo2 *tinfo, TYPEDESC *tdesc,
return hres; return hres;
} }
oldvt = V_VT(arg);
VariantInit(&va); VariantInit(&va);
if (VariantChangeType(&va,arg,0,vt)==S_OK) { if (VariantChangeType(&va,arg,0,vt)==S_OK) {
memcpy(argpos,&V_I4(&va), arglen); memcpy(argpos,&V_I4(&va), arglen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment