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
bb223b78
Commit
bb223b78
authored
Sep 24, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Ordinal functions can be forwards too.
parent
caf66f0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
pe.c
tools/winedump/pe.c
+8
-10
No files found.
tools/winedump/pe.c
View file @
bb223b78
...
...
@@ -492,9 +492,7 @@ static void dump_dir_exported_functions(void)
pFunc
=
RVA
(
exportDir
->
AddressOfFunctions
,
exportDir
->
NumberOfFunctions
*
sizeof
(
DWORD
));
if
(
!
pFunc
)
{
printf
(
"Can't grab functions' address table
\n
"
);
return
;}
pName
=
RVA
(
exportDir
->
AddressOfNames
,
exportDir
->
NumberOfNames
*
sizeof
(
DWORD
));
if
(
!
pName
)
{
printf
(
"Can't grab functions' name table
\n
"
);
return
;}
pOrdl
=
RVA
(
exportDir
->
AddressOfNameOrdinals
,
exportDir
->
NumberOfNames
*
sizeof
(
WORD
));
if
(
!
pOrdl
)
{
printf
(
"Can't grab functions' ordinal table
\n
"
);
return
;}
funcs
=
calloc
(
exportDir
->
NumberOfFunctions
,
sizeof
(
*
funcs
)
);
if
(
!
funcs
)
fatal
(
"no memory"
);
...
...
@@ -506,15 +504,15 @@ static void dump_dir_exported_functions(void)
if
(
!
pFunc
[
i
])
continue
;
printf
(
" %08X %5u "
,
pFunc
[
i
],
exportDir
->
Base
+
i
);
if
(
funcs
[
i
])
{
printf
(
"%s"
,
get_symbol_str
((
const
char
*
)
RVA
(
funcs
[
i
],
sizeof
(
DWORD
))));
/* check for forwarded function */
if
((
const
char
*
)
RVA
(
pFunc
[
i
],
1
)
>=
(
const
char
*
)
exportDir
&&
(
const
char
*
)
RVA
(
pFunc
[
i
],
1
)
<
(
const
char
*
)
exportDir
+
size
)
printf
(
" (-> %s)"
,
(
const
char
*
)
RVA
(
pFunc
[
i
],
1
));
printf
(
"
\n
"
);
}
else
printf
(
"<by ordinal>
\n
"
);
else
printf
(
"<by ordinal>"
);
/* check for forwarded function */
if
((
const
char
*
)
RVA
(
pFunc
[
i
],
1
)
>=
(
const
char
*
)
exportDir
&&
(
const
char
*
)
RVA
(
pFunc
[
i
],
1
)
<
(
const
char
*
)
exportDir
+
size
)
printf
(
" (-> %s)"
,
(
const
char
*
)
RVA
(
pFunc
[
i
],
1
));
printf
(
"
\n
"
);
}
free
(
funcs
);
printf
(
"
\n
"
);
...
...
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