Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a9c17746
Commit
a9c17746
authored
Dec 15, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
d0413d83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
msc.c
tools/winedump/msc.c
+7
-6
No files found.
tools/winedump/msc.c
View file @
a9c17746
...
...
@@ -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\t
Enumerate V1: '%s' value:%
d
\n
"
,
p_string
(
pstr
),
value
);
printf
(
"
\t\t
Enumerate 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\t
Enumerate V3: '%s' value:%
d
\n
"
,
cstr
,
value
);
printf
(
"
\t\t
Enumerate V3: '%s' value:%
s
\n
"
,
cstr
,
full_value_string
(
&
full_value
)
);
ptr
+=
2
+
2
+
leaf_len
+
strlen
(
cstr
)
+
1
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment