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
03767793
Commit
03767793
authored
Aug 01, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Support REG_BINARY values in regf files.
parent
814d8d74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
reg.c
tools/winedump/reg.c
+20
-1
No files found.
tools/winedump/reg.c
View file @
03767793
...
...
@@ -192,8 +192,8 @@ static BOOL dump_subkeys(unsigned int hive_off, unsigned int off)
static
BOOL
dump_value
(
unsigned
int
hive_off
,
unsigned
int
off
)
{
unsigned
int
i
,
len
,
data_size
;
const
void
*
data
=
NULL
;
unsigned
int
data_size
;
const
value_key
*
val
;
const
char
*
name
;
...
...
@@ -246,6 +246,25 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
printf
(
"%s"
,
!
data
?
"
\"\"
"
:
get_unicode_str
((
const
WCHAR
*
)
data
,
data_size
/
sizeof
(
WCHAR
)));
break
;
case
REG_BINARY
:
printf
(
"hex:"
);
len
=
val
->
name_size
+
7
;
/* strlen("\"\"=hex:") */
for
(
i
=
0
;
i
<
data_size
;
i
++
)
{
if
(
i
)
{
printf
(
","
);
len
+=
1
;
}
if
(
len
>
76
)
{
printf
(
"
\\\n
"
);
len
=
2
;
}
printf
(
"%02x"
,
((
BYTE
*
)
data
)[
i
]);
len
+=
2
;
}
break
;
case
REG_DWORD
:
assert
(
data_size
==
sizeof
(
DWORD
));
printf
(
"dword:%08x"
,
*
(
unsigned
int
*
)
data
);
...
...
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