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
f76d8ba6
Commit
f76d8ba6
authored
Jun 09, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Dump manifest resources in a more structured way.
parent
79f3fa73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
pe.c
tools/winedump/pe.c
+19
-1
No files found.
tools/winedump/pe.c
View file @
f76d8ba6
...
...
@@ -2667,7 +2667,7 @@ static const char *get_resource_type( unsigned int id )
"ANICURSOR"
,
"ANIICON"
,
"HTML"
,
"
RT_
MANIFEST"
"MANIFEST"
};
if
((
size_t
)
id
<
ARRAY_SIZE
(
types
))
return
types
[
id
];
...
...
@@ -2944,6 +2944,20 @@ static void dump_version_data( const void *ptr, unsigned int size, const char *p
dump_version_children
(
info
,
prefix
,
0
);
}
/* dump data for a HTML/MANIFEST resource */
static
void
dump_xml_data
(
const
void
*
ptr
,
unsigned
int
size
,
const
char
*
prefix
)
{
const
char
*
p
=
ptr
,
*
end
=
p
+
size
;
while
(
p
<
end
)
{
const
char
*
start
=
p
;
while
(
p
<
end
&&
*
p
!=
'\r'
&&
*
p
!=
'\n'
)
p
++
;
printf
(
"%s%.*s
\n
"
,
prefix
,
(
int
)(
p
-
start
),
start
);
while
(
p
<
end
&&
(
*
p
==
'\r'
||
*
p
==
'\n'
))
p
++
;
}
}
static
void
dump_dir_resource
(
void
)
{
const
IMAGE_RESOURCE_DIRECTORY
*
root
=
get_dir
(
IMAGE_FILE_RESOURCE_DIRECTORY
);
...
...
@@ -3009,6 +3023,10 @@ static void dump_dir_resource(void)
case
16
:
/* RT_VERSION */
dump_version_data
(
RVA
(
data
->
OffsetToData
,
data
->
Size
),
data
->
Size
,
" | "
);
break
;
case
23
:
/* RT_HTML */
case
24
:
/* RT_MANIFEST */
dump_xml_data
(
RVA
(
data
->
OffsetToData
,
data
->
Size
),
data
->
Size
,
" | "
);
break
;
default:
dump_data
(
RVA
(
data
->
OffsetToData
,
data
->
Size
),
data
->
Size
,
" "
);
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