Commit 5c170dc9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dxdiagn: Properly set VT_BOOL values (PVS-Studio).

parent 2fff77a0
......@@ -335,7 +335,7 @@ static inline HRESULT add_bool_property(IDxDiagContainerImpl_Container *node, co
return E_OUTOFMEMORY;
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);
++node->nProperties;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment