dxdiagn: Properly set VT_BOOL values (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2fff77a0ee
commit
5c170dc9bd
|
@ -335,7 +335,7 @@ static inline HRESULT add_bool_property(IDxDiagContainerImpl_Container *node, co
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
||||||
V_VT(&prop->vProp) = VT_BOOL;
|
V_VT(&prop->vProp) = VT_BOOL;
|
||||||
V_BOOL(&prop->vProp) = data;
|
V_BOOL(&prop->vProp) = data ? VARIANT_TRUE : VARIANT_FALSE;
|
||||||
|
|
||||||
list_add_tail(&node->properties, &prop->entry);
|
list_add_tail(&node->properties, &prop->entry);
|
||||||
++node->nProperties;
|
++node->nProperties;
|
||||||
|
|
Loading…
Reference in New Issue