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
29b91206
Commit
29b91206
authored
Jan 24, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Store correct protection for an image mapping.
parent
bf044ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mapping.c
server/mapping.c
+3
-3
No files found.
server/mapping.c
View file @
29b91206
...
...
@@ -395,7 +395,7 @@ static int build_shared_mapping( struct mapping *mapping, int fd,
}
/* retrieve the mapping parameters for an executable (PE) image */
static
int
get_image_params
(
struct
mapping
*
mapping
,
int
unix_fd
)
static
int
get_image_params
(
struct
mapping
*
mapping
,
int
unix_fd
,
int
protect
)
{
IMAGE_DOS_HEADER
dos
;
IMAGE_SECTION_HEADER
*
sec
=
NULL
;
...
...
@@ -453,7 +453,7 @@ static int get_image_params( struct mapping *mapping, int unix_fd )
if
(
mapping
->
shared_file
)
list_add_head
(
&
shared_list
,
&
mapping
->
shared_entry
);
mapping
->
protect
=
VPROT_IMAGE
;
mapping
->
protect
=
protect
;
free
(
sec
);
return
1
;
...
...
@@ -523,7 +523,7 @@ static struct object *create_mapping( struct directory *root, const struct unico
if
((
unix_fd
=
get_unix_fd
(
mapping
->
fd
))
==
-
1
)
goto
error
;
if
(
protect
&
VPROT_IMAGE
)
{
if
(
!
get_image_params
(
mapping
,
unix_fd
))
goto
error
;
if
(
!
get_image_params
(
mapping
,
unix_fd
,
protect
))
goto
error
;
return
&
mapping
->
obj
;
}
if
(
fstat
(
unix_fd
,
&
st
)
==
-
1
)
...
...
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