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
8c944f7a
Commit
8c944f7a
authored
Oct 04, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Keep a reference to the shared PE mapping in mapped views.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
71903899
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mapping.c
server/mapping.c
+3
-0
No files found.
server/mapping.c
View file @
8c944f7a
...
...
@@ -123,6 +123,7 @@ struct memory_view
struct
list
entry
;
/* entry in per-process view list */
struct
fd
*
fd
;
/* fd for mapped file */
struct
ranges
*
committed
;
/* list of committed ranges in this mapping */
struct
shared_map
*
shared
;
/* temp file for shared PE mapping */
unsigned
int
flags
;
/* SEC_* flags */
client_ptr_t
base
;
/* view base address (in process addr space) */
mem_size_t
size
;
/* view size */
...
...
@@ -311,6 +312,7 @@ static void free_memory_view( struct memory_view *view )
{
if
(
view
->
fd
)
release_object
(
view
->
fd
);
if
(
view
->
committed
)
release_object
(
view
->
committed
);
if
(
view
->
shared
)
release_object
(
view
->
shared
);
list_remove
(
&
view
->
entry
);
free
(
view
);
}
...
...
@@ -958,6 +960,7 @@ DECL_HANDLER(map_view)
view
->
flags
=
mapping
->
flags
;
view
->
fd
=
!
is_fd_removable
(
mapping
->
fd
)
?
(
struct
fd
*
)
grab_object
(
mapping
->
fd
)
:
NULL
;
view
->
committed
=
mapping
->
committed
?
(
struct
ranges
*
)
grab_object
(
mapping
->
committed
)
:
NULL
;
view
->
shared
=
mapping
->
shared
?
(
struct
shared_map
*
)
grab_object
(
mapping
->
shared
)
:
NULL
;
list_add_tail
(
&
current
->
process
->
views
,
&
view
->
entry
);
}
...
...
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