OLE: fix handling of INVOKE_PROPERTYGET flag in ITypeComp_fnBind.
The INVOKE_PROPERTYGET flag shouldn't affect binding to variables; it should just affect which of a pair of [propget] and [propput] functions should be returned.
This commit is contained in:
parent
067f09604a
commit
a61e4e802c
|
@ -6370,18 +6370,15 @@ static HRESULT WINAPI ITypeComp_fnBind(
|
||||||
ITypeInfo_AddRef(*ppTInfo);
|
ITypeInfo_AddRef(*ppTInfo);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
} else {
|
} else {
|
||||||
if (!(wFlags & ~(INVOKE_PROPERTYGET)))
|
for(pVDesc = This->varlist; pVDesc; pVDesc = pVDesc->next) {
|
||||||
{
|
if (!strcmpW(pVDesc->Name, szName)) {
|
||||||
for(pVDesc = This->varlist; pVDesc; pVDesc = pVDesc->next) {
|
HRESULT hr = TLB_AllocAndInitVarDesc(&pVDesc->vardesc, &pBindPtr->lpvardesc);
|
||||||
if (!strcmpW(pVDesc->Name, szName)) {
|
if (FAILED(hr))
|
||||||
HRESULT hr = TLB_AllocAndInitVarDesc(&pVDesc->vardesc, &pBindPtr->lpvardesc);
|
return hr;
|
||||||
if (FAILED(hr))
|
*pDescKind = DESCKIND_VARDESC;
|
||||||
return hr;
|
*ppTInfo = (ITypeInfo *)&This->lpVtbl;
|
||||||
*pDescKind = DESCKIND_VARDESC;
|
ITypeInfo_AddRef(*ppTInfo);
|
||||||
*ppTInfo = (ITypeInfo *)&This->lpVtbl;
|
return S_OK;
|
||||||
ITypeInfo_AddRef(*ppTInfo);
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue