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
63c7ea64
Commit
63c7ea64
authored
Aug 28, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use virtual size (not raw/file size) when getting the size of a PE section.
parent
1ed39c29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
pe_module.c
dlls/dbghelp/pe_module.c
+10
-2
No files found.
dlls/dbghelp/pe_module.c
View file @
63c7ea64
...
...
@@ -79,6 +79,14 @@ const char* pe_map_section(struct image_section_map* ism)
fmap
->
sect
[
ism
->
sidx
].
mapped
==
IMAGE_NO_MAP
)
{
IMAGE_NT_HEADERS
*
nth
;
if
(
fmap
->
sect
[
ism
->
sidx
].
shdr
.
Misc
.
VirtualSize
>
fmap
->
sect
[
ism
->
sidx
].
shdr
.
SizeOfRawData
)
{
FIXME
(
"Section %ld: virtual (0x%x) > raw (0x%x) size - not supported
\n
"
,
ism
->
sidx
,
fmap
->
sect
[
ism
->
sidx
].
shdr
.
Misc
.
VirtualSize
,
fmap
->
sect
[
ism
->
sidx
].
shdr
.
SizeOfRawData
);
return
IMAGE_NO_MAP
;
}
/* FIXME: that's rather drastic, but that will do for now
* that's ok if the full file map exists, but we could be less agressive otherwise and
* only map the relevant section
...
...
@@ -162,13 +170,13 @@ DWORD_PTR pe_get_map_rva(const struct image_section_map* ism)
/******************************************************************
* pe_get_map_size
*
* Get the size of a
n
PE section
* Get the size of a PE section
*/
unsigned
pe_get_map_size
(
const
struct
image_section_map
*
ism
)
{
if
(
ism
->
sidx
<
0
||
ism
->
sidx
>=
ism
->
fmap
->
u
.
pe
.
ntheader
.
FileHeader
.
NumberOfSections
)
return
0
;
return
ism
->
fmap
->
u
.
pe
.
sect
[
ism
->
sidx
].
shdr
.
SizeOfRawData
;
return
ism
->
fmap
->
u
.
pe
.
sect
[
ism
->
sidx
].
shdr
.
Misc
.
VirtualSize
;
}
/******************************************************************
...
...
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