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
7a685030
Commit
7a685030
authored
Dec 29, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Manage the string table size in PE file format.
parent
e8158e48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
pe.c
tools/winedump/pe.c
+6
-3
No files found.
tools/winedump/pe.c
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
);
...
...
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