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
b4fb0aef
Commit
b4fb0aef
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_MULTI_SZ values in regf files.
parent
03767793
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
reg.c
tools/winedump/reg.c
+17
-1
No files found.
tools/winedump/reg.c
View file @
b4fb0aef
...
@@ -194,8 +194,8 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
...
@@ -194,8 +194,8 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
{
{
unsigned
int
i
,
len
,
data_size
;
unsigned
int
i
,
len
,
data_size
;
const
void
*
data
=
NULL
;
const
void
*
data
=
NULL
;
const
char
*
name
,
*
str
;
const
value_key
*
val
;
const
value_key
*
val
;
const
char
*
name
;
val
=
PRD
(
hive_off
+
off
,
sizeof
(
*
val
));
val
=
PRD
(
hive_off
+
off
,
sizeof
(
*
val
));
if
(
!
val
||
memcmp
(
&
val
->
signature
,
"vk"
,
2
))
if
(
!
val
||
memcmp
(
&
val
->
signature
,
"vk"
,
2
))
...
@@ -269,6 +269,22 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
...
@@ -269,6 +269,22 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off)
assert
(
data_size
==
sizeof
(
DWORD
));
assert
(
data_size
==
sizeof
(
DWORD
));
printf
(
"dword:%08x"
,
*
(
unsigned
int
*
)
data
);
printf
(
"dword:%08x"
,
*
(
unsigned
int
*
)
data
);
break
;
break
;
case
REG_MULTI_SZ
:
printf
(
"str(7):
\"
"
);
while
(
data_size
>
sizeof
(
WCHAR
))
{
for
(
len
=
0
;
len
<
data_size
/
sizeof
(
WCHAR
);
len
++
)
if
(
!
((
WCHAR
*
)
data
)[
len
])
break
;
str
=
get_unicode_str
(
data
,
len
);
printf
(
"%.*s
\\
0"
,
(
unsigned
int
)
strlen
(
str
+
1
)
-
1
,
str
+
1
);
data
=
((
WCHAR
*
)
data
)
+
len
+
1
;
data_size
-=
(
len
+
1
)
*
sizeof
(
WCHAR
);
}
printf
(
"
\"
"
);
break
;
default:
default:
printf
(
"unhandled data type %d"
,
val
->
data_type
);
printf
(
"unhandled data type %d"
,
val
->
data_type
);
}
}
...
...
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