propsys: Use BOOL type where appropriate.
This commit is contained in:
parent
0776a76eef
commit
7533040cfc
|
@ -204,7 +204,7 @@ static HRESULT WINAPI PropertyStore_GetAt(IPropertyStoreCache *iface,
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT PropertyStore_LookupValue(PropertyStore *This, REFPROPERTYKEY key,
|
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_format *format=NULL, *format_candidate;
|
||||||
propstore_value *value=NULL, *value_candidate;
|
propstore_value *value=NULL, *value_candidate;
|
||||||
|
@ -282,7 +282,7 @@ static HRESULT WINAPI PropertyStore_GetValue(IPropertyStoreCache *iface,
|
||||||
|
|
||||||
EnterCriticalSection(&This->lock);
|
EnterCriticalSection(&This->lock);
|
||||||
|
|
||||||
hr = PropertyStore_LookupValue(This, key, 0, &value);
|
hr = PropertyStore_LookupValue(This, key, FALSE, &value);
|
||||||
|
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
hr = PropVariantCopy(pv, &value->propvar);
|
hr = PropVariantCopy(pv, &value->propvar);
|
||||||
|
@ -309,7 +309,7 @@ static HRESULT WINAPI PropertyStore_SetValue(IPropertyStoreCache *iface,
|
||||||
|
|
||||||
EnterCriticalSection(&This->lock);
|
EnterCriticalSection(&This->lock);
|
||||||
|
|
||||||
hr = PropertyStore_LookupValue(This, key, 1, &value);
|
hr = PropertyStore_LookupValue(This, key, TRUE, &value);
|
||||||
|
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
hr = PropVariantCopy(&temp, propvar);
|
hr = PropVariantCopy(&temp, propvar);
|
||||||
|
@ -342,7 +342,7 @@ static HRESULT WINAPI PropertyStore_GetState(IPropertyStoreCache *iface,
|
||||||
|
|
||||||
EnterCriticalSection(&This->lock);
|
EnterCriticalSection(&This->lock);
|
||||||
|
|
||||||
hr = PropertyStore_LookupValue(This, key, 0, &value);
|
hr = PropertyStore_LookupValue(This, key, FALSE, &value);
|
||||||
|
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
*pstate = value->state;
|
*pstate = value->state;
|
||||||
|
@ -366,7 +366,7 @@ static HRESULT WINAPI PropertyStore_GetValueAndState(IPropertyStoreCache *iface,
|
||||||
|
|
||||||
EnterCriticalSection(&This->lock);
|
EnterCriticalSection(&This->lock);
|
||||||
|
|
||||||
hr = PropertyStore_LookupValue(This, key, 0, &value);
|
hr = PropertyStore_LookupValue(This, key, FALSE, &value);
|
||||||
|
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
hr = PropVariantCopy(ppropvar, &value->propvar);
|
hr = PropVariantCopy(ppropvar, &value->propvar);
|
||||||
|
@ -396,7 +396,7 @@ static HRESULT WINAPI PropertyStore_SetState(IPropertyStoreCache *iface,
|
||||||
|
|
||||||
EnterCriticalSection(&This->lock);
|
EnterCriticalSection(&This->lock);
|
||||||
|
|
||||||
hr = PropertyStore_LookupValue(This, key, 0, &value);
|
hr = PropertyStore_LookupValue(This, key, FALSE, &value);
|
||||||
|
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
value->state = pstate;
|
value->state = pstate;
|
||||||
|
@ -418,7 +418,7 @@ static HRESULT WINAPI PropertyStore_SetValueAndState(IPropertyStoreCache *iface,
|
||||||
|
|
||||||
EnterCriticalSection(&This->lock);
|
EnterCriticalSection(&This->lock);
|
||||||
|
|
||||||
hr = PropertyStore_LookupValue(This, key, 1, &value);
|
hr = PropertyStore_LookupValue(This, key, TRUE, &value);
|
||||||
|
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
hr = PropVariantCopy(&temp, ppropvar);
|
hr = PropVariantCopy(&temp, ppropvar);
|
||||||
|
|
Loading…
Reference in New Issue