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
ea458621
Commit
ea458621
authored
Oct 06, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore the delay load directory size.
parent
119da5a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
pe.c
tools/winedump/pe.c
+10
-18
No files found.
tools/winedump/pe.c
View file @
ea458621
...
...
@@ -583,7 +583,6 @@ static void dump_dir_delay_imported_functions(void)
DWORD
pUnloadIAT
;
DWORD
dwTimeStamp
;
}
*
importDesc
=
get_dir
(
IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT
);
unsigned
nb_imp
,
i
;
DWORD
directorySize
;
if
(
!
importDesc
)
return
;
...
...
@@ -597,22 +596,16 @@ static void dump_dir_delay_imported_functions(void)
IMAGE_OPTIONAL_HEADER32
*
opt
=
(
IMAGE_OPTIONAL_HEADER32
*
)
&
PE_nt_headers
->
OptionalHeader
;
directorySize
=
opt
->
DataDirectory
[
IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT
].
Size
;
}
nb_imp
=
directorySize
/
sizeof
(
*
importDesc
);
if
(
!
nb_imp
)
return
;
printf
(
"Delay Import Table size: %08lx
\n
"
,
directorySize
);
/* FIXME */
for
(
i
=
0
;
i
<
nb_imp
-
1
;
i
++
)
/* the last descr is set as 0 as a sentinel */
for
(
;;)
{
BOOL
use_rva
=
importDesc
->
grAttrs
&
1
;
IMAGE_THUNK_DATA32
*
il
;
if
(
!
importDesc
->
szName
||
!
importDesc
->
pIAT
||
!
importDesc
->
pINT
)
{
/* FIXME */
printf
(
"<<<<<<<null entry
\n
"
);
break
;
}
if
(
!
importDesc
->
szName
||
!
importDesc
->
pIAT
||
!
importDesc
->
pINT
)
break
;
printf
(
" grAttrs %08lx offset %08lx %s
\n
"
,
importDesc
->
grAttrs
,
Offset
(
importDesc
),
use_rva
?
(
char
*
)
RVA
(
importDesc
->
szName
,
sizeof
(
DWORD
))
:
(
char
*
)
importDesc
->
szName
);
printf
(
" Hint/Name Table: %08lx
\n
"
,
importDesc
->
pINT
);
...
...
@@ -624,16 +617,15 @@ static void dump_dir_delay_imported_functions(void)
il
=
use_rva
?
(
IMAGE_THUNK_DATA32
*
)
RVA
(
importDesc
->
pINT
,
sizeof
(
DWORD
))
:
(
IMAGE_THUNK_DATA32
*
)
importDesc
->
pINT
;
if
(
!
il
)
{
printf
(
"Can't grab thunk data, going to next imported DLL
\n
"
);
continue
;
}
if
(
PE_nt_headers
->
OptionalHeader
.
Magic
==
IMAGE_NT_OPTIONAL_HDR64_MAGIC
)
dump_image_thunk_data64
((
IMAGE_THUNK_DATA64
*
)
il
);
else
dump_image_thunk_data32
(
il
);
printf
(
"
\n
"
);
{
if
(
PE_nt_headers
->
OptionalHeader
.
Magic
==
IMAGE_NT_OPTIONAL_HDR64_MAGIC
)
dump_image_thunk_data64
((
IMAGE_THUNK_DATA64
*
)
il
);
else
dump_image_thunk_data32
(
il
);
printf
(
"
\n
"
);
}
importDesc
++
;
}
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