Commit 8ca5afa4 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oleaut32/typelib: Remove explicit check already handled by the loop condition.

parent f7d26b42
...@@ -7216,7 +7216,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( ...@@ -7216,7 +7216,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
UINT *pArgErr) UINT *pArgErr)
{ {
ITypeInfoImpl *This = impl_from_ITypeInfo2(iface); ITypeInfoImpl *This = impl_from_ITypeInfo2(iface);
int i; int i, j;
unsigned int var_index; unsigned int var_index;
TYPEKIND type_kind; TYPEKIND type_kind;
HRESULT hres; HRESULT hres;
...@@ -7323,10 +7323,8 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( ...@@ -7323,10 +7323,8 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
src_arg = NULL; src_arg = NULL;
if (cNamedArgs)
{
USHORT j;
for (j = 0; j < cNamedArgs; j++) for (j = 0; j < cNamedArgs; j++)
{
if (rgdispidNamedArgs[j] == i || (i == func_desc->cParams-1 && rgdispidNamedArgs[j] == DISPID_PROPERTYPUT)) if (rgdispidNamedArgs[j] == i || (i == func_desc->cParams-1 && rgdispidNamedArgs[j] == DISPID_PROPERTYPUT))
{ {
src_arg = &pDispParams->rgvarg[j]; src_arg = &pDispParams->rgvarg[j];
...@@ -7400,7 +7398,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( ...@@ -7400,7 +7398,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
{ {
SAFEARRAYBOUND bound; SAFEARRAYBOUND bound;
VARIANT *v; VARIANT *v;
LONG j;
bound.lLbound = 0; bound.lLbound = 0;
bound.cElements = pDispParams->cArgs-i; bound.cElements = pDispParams->cArgs-i;
if (!(a = SafeArrayCreate(VT_VARIANT, 1, &bound))) if (!(a = SafeArrayCreate(VT_VARIANT, 1, &bound)))
...@@ -7585,7 +7583,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( ...@@ -7585,7 +7583,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
i == func_desc->cParams-1) i == func_desc->cParams-1)
{ {
SAFEARRAY *a = V_ARRAY(prgpvarg[i]); SAFEARRAY *a = V_ARRAY(prgpvarg[i]);
LONG j, ubound; LONG ubound;
VARIANT *v; VARIANT *v;
hres = SafeArrayGetUBound(a, 1, &ubound); hres = SafeArrayGetUBound(a, 1, &ubound);
if (hres != S_OK) if (hres != S_OK)
......
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