Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5b2dc083
Commit
5b2dc083
authored
Oct 24, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Allow caching device file handles.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3b30002a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
device.c
server/device.c
+2
-0
fd.c
server/fd.c
+1
-1
No files found.
server/device.c
View file @
5b2dc083
...
...
@@ -383,6 +383,8 @@ static struct object *device_open_file( struct object *obj, unsigned int access,
return
NULL
;
}
allow_fd_caching
(
file
->
fd
);
if
(
device
->
manager
)
{
struct
irp_call
*
irp
;
...
...
server/fd.c
View file @
5b2dc083
...
...
@@ -2441,10 +2441,10 @@ DECL_HANDLER(get_handle_fd)
if
((
fd
=
get_handle_fd_obj
(
current
->
process
,
req
->
handle
,
0
)))
{
int
unix_fd
=
get_unix_fd
(
fd
);
reply
->
cacheable
=
fd
->
cacheable
;
if
(
unix_fd
!=
-
1
)
{
reply
->
type
=
fd
->
fd_ops
->
get_fd_type
(
fd
);
reply
->
cacheable
=
fd
->
cacheable
;
reply
->
options
=
fd
->
options
;
reply
->
access
=
get_handle_access
(
current
->
process
,
req
->
handle
);
send_client_fd
(
current
->
process
,
unix_fd
,
req
->
handle
);
...
...
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