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
7e16acf3
Commit
7e16acf3
authored
Feb 18, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use RtlImageDirectoryEntryToData in pe_load_msc_debug_info.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ab4c64a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
pe_module.c
dlls/dbghelp/pe_module.c
+4
-8
No files found.
dlls/dbghelp/pe_module.c
View file @
7e16acf3
...
...
@@ -572,19 +572,15 @@ static BOOL pe_load_msc_debug_info(const struct process* pcs, struct module* mod
{
struct
image_file_map
*
fmap
=
&
module
->
format_info
[
DFI_PE
]
->
u
.
pe_info
->
fmap
;
BOOL
ret
=
FALSE
;
const
IMAGE_DATA_DIRECTORY
*
dir
;
const
IMAGE_DEBUG_DIRECTORY
*
dbg
=
NULL
;
int
nDbg
;
const
IMAGE_DEBUG_DIRECTORY
*
dbg
;
ULONG
nDbg
;
void
*
mapping
;
IMAGE_NT_HEADERS
*
nth
;
if
(
!
(
mapping
=
pe_map_full
(
fmap
,
&
nth
)))
return
FALSE
;
/* Read in debug directory */
dir
=
nth
->
OptionalHeader
.
DataDirectory
+
IMAGE_DIRECTORY_ENTRY_DEBUG
;
nDbg
=
dir
->
Size
/
sizeof
(
IMAGE_DEBUG_DIRECTORY
);
if
(
!
nDbg
)
goto
done
;
dbg
=
RtlImageRvaToVa
(
nth
,
mapping
,
dir
->
VirtualAddress
,
NULL
);
dbg
=
RtlImageDirectoryEntryToData
(
mapping
,
FALSE
,
IMAGE_DIRECTORY_ENTRY_DEBUG
,
&
nDbg
);
if
(
!
dbg
||
!
(
nDbg
/=
sizeof
(
IMAGE_DEBUG_DIRECTORY
)))
goto
done
;
/* Parse debug directory */
if
(
nth
->
FileHeader
.
Characteristics
&
IMAGE_FILE_DEBUG_STRIPPED
)
...
...
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