ole32: Only return S_FALSE in IPropertyStorage::ReadMultiple if a property was not found.
This commit is contained in:
parent
704dffcb09
commit
7f891787bc
|
@ -303,7 +303,7 @@ static HRESULT WINAPI IPropertyStorage_fnReadMultiple(
|
||||||
PROPVARIANT rgpropvar[])
|
PROPVARIANT rgpropvar[])
|
||||||
{
|
{
|
||||||
PropertyStorage_impl *This = (PropertyStorage_impl *)iface;
|
PropertyStorage_impl *This = (PropertyStorage_impl *)iface;
|
||||||
HRESULT hr = S_FALSE;
|
HRESULT hr = S_OK;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
TRACE("(%p, %ld, %p, %p)\n", iface, cpspec, rgpspec, rgpropvar);
|
TRACE("(%p, %ld, %p, %p)\n", iface, cpspec, rgpspec, rgpropvar);
|
||||||
|
@ -344,6 +344,8 @@ static HRESULT WINAPI IPropertyStorage_fnReadMultiple(
|
||||||
if (prop)
|
if (prop)
|
||||||
PropertyStorage_PropVariantCopy(&rgpropvar[i], prop,
|
PropertyStorage_PropVariantCopy(&rgpropvar[i], prop,
|
||||||
GetACP(), This->codePage);
|
GetACP(), This->codePage);
|
||||||
|
else
|
||||||
|
hr = S_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue