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
b54e9e94
Commit
b54e9e94
authored
Jan 11, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't round up the header size for image mappings.
parent
9eae2d71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
mapping.c
server/mapping.c
+1
-5
No files found.
server/mapping.c
View file @
b54e9e94
...
...
@@ -105,9 +105,6 @@ static void init_page_size(void)
}
#endif
/* __i386__ */
#define ROUND_SIZE_MASK(addr,size,mask) \
(((int)(size) + ((int)(addr) & (mask)) + (mask)) & ~(mask))
#define ROUND_SIZE(size) (((size) + page_mask) & ~page_mask)
...
...
@@ -246,8 +243,7 @@ static int get_image_params( struct mapping *mapping )
mapping
->
size
=
ROUND_SIZE
(
nt
.
OptionalHeader
.
SizeOfImage
);
mapping
->
base
=
(
void
*
)
nt
.
OptionalHeader
.
ImageBase
;
mapping
->
header_size
=
ROUND_SIZE_MASK
(
mapping
->
base
,
nt
.
OptionalHeader
.
SizeOfHeaders
,
nt
.
OptionalHeader
.
SectionAlignment
-
1
);
mapping
->
header_size
=
nt
.
OptionalHeader
.
SizeOfHeaders
;
mapping
->
protect
=
VPROT_IMAGE
;
/* sanity check */
...
...
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