Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
7a685030
Commit
7a685030
authored
15 years ago
by
eric pouech
Committed by
Alexandre Julliard
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
winedump: Manage the string table size in PE file format.
parent
e8158e48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/winedump/pe.c
+6
-3
6 additions, 3 deletions
tools/winedump/pe.c
with
6 additions
and
3 deletions
tools/winedump/pe.c
+
6
−
3
View file @
7a685030
...
...
@@ -373,8 +373,12 @@ static void dump_pe_header(void)
void
dump_section
(
const
IMAGE_SECTION_HEADER
*
sectHead
,
const
char
*
strtable
)
{
if
(
strtable
&&
sectHead
->
Name
[
0
]
==
'/'
)
/* long section name */
printf
(
" %.8s (%s)"
,
sectHead
->
Name
,
strtable
+
atoi
((
const
char
*
)
sectHead
->
Name
+
1
));
unsigned
offset
;
/* long section name ? */
if
(
strtable
&&
sectHead
->
Name
[
0
]
==
'/'
&&
((
offset
=
atoi
((
const
char
*
)
sectHead
->
Name
+
1
))
<
*
(
DWORD
*
)
strtable
))
printf
(
" %.8s (%s)"
,
sectHead
->
Name
,
strtable
+
offset
);
else
printf
(
" %-8.8s"
,
sectHead
->
Name
);
printf
(
" VirtSize: 0x%08x VirtAddr: 0x%08x
\n
"
,
...
...
@@ -456,7 +460,6 @@ static void dump_sections(const void *base, const void* addr, unsigned num_sect)
if
(
PE_nt_headers
->
FileHeader
.
PointerToSymbolTable
&&
PE_nt_headers
->
FileHeader
.
NumberOfSymbols
)
{
/* FIXME: no way to get strtable size */
strtable
=
(
const
char
*
)
base
+
PE_nt_headers
->
FileHeader
.
PointerToSymbolTable
+
PE_nt_headers
->
FileHeader
.
NumberOfSymbols
*
sizeof
(
IMAGE_SYMBOL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment