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
83286061
Commit
83286061
authored
Feb 13, 2012
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Store the 32/64 bitness in the image structure.
parent
b3ab012a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
elf_module.c
dlls/dbghelp/elf_module.c
+1
-0
image_private.h
dlls/dbghelp/image_private.h
+1
-0
pe_module.c
dlls/dbghelp/pe_module.c
+6
-0
No files found.
dlls/dbghelp/elf_module.c
View file @
83286061
...
...
@@ -324,6 +324,7 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map*
#else
if
(
fmap
->
u
.
elf
.
elfhdr
.
e_ident
[
EI_CLASS
]
!=
ELFCLASS32
)
goto
done
;
#endif
fmap
->
addr_size
=
fmap
->
u
.
elf
.
elfhdr
.
e_ident
[
EI_CLASS
]
==
ELFCLASS64
?
64
:
32
;
fmap
->
u
.
elf
.
sect
=
HeapAlloc
(
GetProcessHeap
(),
0
,
fmap
->
u
.
elf
.
elfhdr
.
e_shnum
*
sizeof
(
fmap
->
u
.
elf
.
sect
[
0
]));
if
(
!
fmap
->
u
.
elf
.
sect
)
goto
done
;
...
...
dlls/dbghelp/image_private.h
View file @
83286061
...
...
@@ -74,6 +74,7 @@
struct
image_file_map
{
enum
module_type
modtype
;
unsigned
addr_size
;
/* either 16 (not used), 32 or 64 */
union
{
struct
elf_file_map
...
...
dlls/dbghelp/pe_module.c
View file @
83286061
...
...
@@ -224,6 +224,12 @@ static BOOL pe_map_file(HANDLE file, struct image_file_map* fmap, enum module_ty
if
(
!
(
nthdr
=
RtlImageNtHeader
(
mapping
)))
goto
error
;
memcpy
(
&
fmap
->
u
.
pe
.
ntheader
,
nthdr
,
sizeof
(
fmap
->
u
.
pe
.
ntheader
));
switch
(
nthdr
->
OptionalHeader
.
Magic
)
{
case
0x10b
:
fmap
->
addr_size
=
32
;
break
;
case
0x20b
:
fmap
->
addr_size
=
64
;
break
;
default:
return
FALSE
;
}
section
=
(
IMAGE_SECTION_HEADER
*
)
((
char
*
)
&
nthdr
->
OptionalHeader
+
nthdr
->
FileHeader
.
SizeOfOptionalHeader
);
fmap
->
u
.
pe
.
sect
=
HeapAlloc
(
GetProcessHeap
(),
0
,
...
...
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