Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
49c40d50
Commit
49c40d50
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 dumping UTF16 value names in regf files.
parent
2908537f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
reg.c
tools/winedump/reg.c
+14
-7
No files found.
tools/winedump/reg.c
View file @
49c40d50
...
...
@@ -201,27 +201,34 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
if
(
!
val
||
memcmp
(
&
val
->
signature
,
"vk"
,
2
))
return
FALSE
;
if
(
!
(
val
->
flags
&
VAL_COMP_NAME
)
&&
val
->
name_size
)
{
printf
(
"unsupported value flags: %x
\n
"
,
val
->
flags
);
return
FALSE
;
}
if
(
!
(
val
->
data_size
&
0x80000000
)
&&
val
->
data_size
>
4
*
BLOCK_SIZE
)
{
printf
(
"Warning: data blocks not supported
\n
"
);
return
TRUE
;
}
if
(
val
->
name_size
)
if
(
val
->
name_size
&&
!
(
val
->
flags
&
VAL_COMP_NAME
))
{
name
=
PRD
(
hive_off
+
off
+
sizeof
(
*
val
),
val
->
name_size
);
if
(
!
name
)
return
FALSE
;
name
=
get_unicode_str
((
WCHAR
*
)
name
,
val
->
name_size
/
sizeof
(
WCHAR
));
len
=
strlen
(
name
)
+
1
;
printf
(
"%s="
,
name
);
}
else
if
(
val
->
name_size
)
{
name
=
PRD
(
hive_off
+
off
+
sizeof
(
*
val
),
val
->
name_size
);
if
(
!
name
)
return
FALSE
;
len
=
val
->
name_size
+
3
;
printf
(
"
\"
%.*s
\"
="
,
val
->
name_size
,
name
);
}
else
{
len
=
2
;
printf
(
"@="
);
}
...
...
@@ -253,7 +260,7 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
break
;
case
REG_BINARY
:
printf
(
"hex:"
);
len
=
val
->
name_size
+
7
;
/* strlen("\"\"=
hex:") */
len
+=
4
;
/* strlen("
hex:") */
for
(
i
=
0
;
i
<
data_size
;
i
++
)
{
if
(
i
)
...
...
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