mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 23:05:46 +00:00
winedump: Support dumping quad word values in enumerations.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d0413d833f
commit
a9c177464f
|
@ -504,6 +504,7 @@ static void do_field(const unsigned char* start, const unsigned char* end)
|
|||
const char* cstr;
|
||||
const struct p_string* pstr;
|
||||
int leaf_len, value;
|
||||
struct full_value full_value;
|
||||
|
||||
while (ptr < end)
|
||||
{
|
||||
|
@ -518,18 +519,18 @@ static void do_field(const unsigned char* start, const unsigned char* end)
|
|||
switch (fieldtype->generic.id)
|
||||
{
|
||||
case LF_ENUMERATE_V1:
|
||||
leaf_len = numeric_leaf(&value, &fieldtype->enumerate_v1.value);
|
||||
leaf_len = full_numeric_leaf(&full_value, &fieldtype->enumerate_v1.value);
|
||||
pstr = PSTRING(&fieldtype->enumerate_v1.value, leaf_len);
|
||||
printf("\t\tEnumerate V1: '%s' value:%d\n",
|
||||
p_string(pstr), value);
|
||||
printf("\t\tEnumerate V1: '%s' value:%s\n",
|
||||
p_string(pstr), full_value_string(&full_value));
|
||||
ptr += 2 + 2 + leaf_len + 1 + pstr->namelen;
|
||||
break;
|
||||
|
||||
case LF_ENUMERATE_V3:
|
||||
leaf_len = numeric_leaf(&value, &fieldtype->enumerate_v3.value);
|
||||
leaf_len = full_numeric_leaf(&full_value, &fieldtype->enumerate_v3.value);
|
||||
cstr = (const char*)&fieldtype->enumerate_v3.value + leaf_len;
|
||||
printf("\t\tEnumerate V3: '%s' value:%d\n",
|
||||
cstr, value);
|
||||
printf("\t\tEnumerate V3: '%s' value:%s\n",
|
||||
cstr, full_value_string(&full_value));
|
||||
ptr += 2 + 2 + leaf_len + strlen(cstr) + 1;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue