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
26a41099
Commit
26a41099
authored
Apr 16, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Print the thunk address for imports instead of the name address.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bb74918b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
pe.c
tools/winedump/pe.c
+6
-5
No files found.
tools/winedump/pe.c
View file @
26a41099
...
...
@@ -1205,10 +1205,10 @@ static void dump_image_thunk_data64(const IMAGE_THUNK_DATA64 *il)
}
}
static
void
dump_image_thunk_data32
(
const
IMAGE_THUNK_DATA32
*
il
,
int
offset
)
static
void
dump_image_thunk_data32
(
const
IMAGE_THUNK_DATA32
*
il
,
int
offset
,
DWORD
thunk_rva
)
{
const
IMAGE_IMPORT_BY_NAME
*
iibn
;
for
(;
il
->
u1
.
Ordinal
;
il
++
)
for
(;
il
->
u1
.
Ordinal
;
il
++
,
thunk_rva
+=
sizeof
(
DWORD
)
)
{
if
(
IMAGE_SNAP_BY_ORDINAL32
(
il
->
u1
.
Ordinal
))
printf
(
" %4u <by ordinal>
\n
"
,
IMAGE_ORDINAL32
(
il
->
u1
.
Ordinal
));
...
...
@@ -1218,7 +1218,7 @@ static void dump_image_thunk_data32(const IMAGE_THUNK_DATA32 *il, int offset)
if
(
!
iibn
)
printf
(
"Can't grab import by name info, skipping to next ordinal
\n
"
);
else
printf
(
" %4u %s %x
\n
"
,
iibn
->
Hint
,
iibn
->
Name
,
(
DWORD
)
il
->
u1
.
AddressOfDat
a
);
printf
(
" %4u %s %x
\n
"
,
iibn
->
Hint
,
iibn
->
Name
,
thunk_rv
a
);
}
}
}
...
...
@@ -1258,7 +1258,7 @@ static void dump_dir_imported_functions(void)
if
(
PE_nt_headers
->
OptionalHeader
.
Magic
==
IMAGE_NT_OPTIONAL_HDR64_MAGIC
)
dump_image_thunk_data64
((
const
IMAGE_THUNK_DATA64
*
)
il
);
else
dump_image_thunk_data32
(
il
,
0
);
dump_image_thunk_data32
(
il
,
0
,
importDesc
->
FirstThunk
);
printf
(
"
\n
"
);
}
importDesc
++
;
...
...
@@ -1331,6 +1331,7 @@ static void dump_dir_delay_imported_functions(void)
printf
(
" grAttrs %08x offset %08lx %s
\n
"
,
importDesc
->
Attributes
.
AllAttributes
,
Offset
(
importDesc
),
(
const
char
*
)
RVA
(
importDesc
->
DllNameRVA
-
offset
,
sizeof
(
DWORD
)));
printf
(
" Hint/Name Table: %08x
\n
"
,
importDesc
->
ImportNameTableRVA
);
printf
(
" Address Table: %08x
\n
"
,
importDesc
->
ImportAddressTableRVA
);
printf
(
" TimeDateStamp: %08X (%s)
\n
"
,
importDesc
->
TimeDateStamp
,
get_time_str
(
importDesc
->
TimeDateStamp
));
...
...
@@ -1345,7 +1346,7 @@ static void dump_dir_delay_imported_functions(void)
if
(
PE_nt_headers
->
OptionalHeader
.
Magic
==
IMAGE_NT_OPTIONAL_HDR64_MAGIC
)
dump_image_thunk_data64
((
const
IMAGE_THUNK_DATA64
*
)
il
);
else
dump_image_thunk_data32
(
il
,
offset
);
dump_image_thunk_data32
(
il
,
offset
,
importDesc
->
ImportAddressTableRVA
);
printf
(
"
\n
"
);
}
importDesc
++
;
...
...
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