}
static HRESULT PropertyStore_LookupValue(PropertyStore *This, REFPROPERTYKEY key,
- int insert, propstore_value **result)
+ BOOL insert, propstore_value **result)
{
propstore_format *format=NULL, *format_candidate;
propstore_value *value=NULL, *value_candidate;
EnterCriticalSection(&This->lock);
- hr = PropertyStore_LookupValue(This, key, 0, &value);
+ hr = PropertyStore_LookupValue(This, key, FALSE, &value);
if (SUCCEEDED(hr))
hr = PropVariantCopy(pv, &value->propvar);
EnterCriticalSection(&This->lock);
- hr = PropertyStore_LookupValue(This, key, 1, &value);
+ hr = PropertyStore_LookupValue(This, key, TRUE, &value);
if (SUCCEEDED(hr))
hr = PropVariantCopy(&temp, propvar);
EnterCriticalSection(&This->lock);
- hr = PropertyStore_LookupValue(This, key, 0, &value);
+ hr = PropertyStore_LookupValue(This, key, FALSE, &value);
if (SUCCEEDED(hr))
*pstate = value->state;
EnterCriticalSection(&This->lock);
- hr = PropertyStore_LookupValue(This, key, 0, &value);
+ hr = PropertyStore_LookupValue(This, key, FALSE, &value);
if (SUCCEEDED(hr))
hr = PropVariantCopy(ppropvar, &value->propvar);
EnterCriticalSection(&This->lock);
- hr = PropertyStore_LookupValue(This, key, 0, &value);
+ hr = PropertyStore_LookupValue(This, key, FALSE, &value);
if (SUCCEEDED(hr))
value->state = pstate;
EnterCriticalSection(&This->lock);
- hr = PropertyStore_LookupValue(This, key, 1, &value);
+ hr = PropertyStore_LookupValue(This, key, TRUE, &value);
if (SUCCEEDED(hr))
hr = PropVariantCopy(&temp, ppropvar);