winedbg: Use macros when manipulating variants.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
07502a0646
commit
5b54dac338
|
@ -466,10 +466,10 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
|
|||
sub_type.id = fcp->ChildId[i];
|
||||
if (!types_get_info(&sub_type, TI_GET_VALUE, &variant))
|
||||
continue;
|
||||
switch (variant.n1.n2.vt)
|
||||
switch (V_VT(&variant))
|
||||
{
|
||||
case VT_I4: ok = (val_int == variant.n1.n2.n3.lVal); break;
|
||||
default: WINE_FIXME("Unsupported variant type (%u)\n", variant.n1.n2.vt);
|
||||
case VT_I4: ok = (val_int == V_I4(&variant)); break;
|
||||
default: WINE_FIXME("Unsupported variant type (%u)\n", V_VT(&variant));
|
||||
}
|
||||
if (ok)
|
||||
{
|
||||
|
|
|
@ -105,7 +105,7 @@ static BOOL fill_sym_lvalue(const SYMBOL_INFO* sym, ULONG_PTR base,
|
|||
if (buffer) snprintf(buffer, sz, "Couldn't get full value information for %s", sym->Name);
|
||||
return FALSE;
|
||||
}
|
||||
else if (v.n1.n2.vt & VT_BYREF)
|
||||
else if (V_ISBYREF(&v))
|
||||
{
|
||||
/* FIXME: this won't work for pointers or arrays, as we don't always
|
||||
* know, if the value to be dereferenced lies in debuggee or
|
||||
|
|
Loading…
Reference in New Issue