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:
Nikolay Sivov 2015-10-21 14:48:09 +03:00 committed by Alexandre Julliard
parent 2fff77a0ee
commit 5c170dc9bd
1 changed files with 1 additions and 1 deletions

View File

@ -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;