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
693bbd79
Commit
693bbd79
authored
Jun 14, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to retrieve an inheritable handle in open_named_pipe
(spotted by Uwe Bonnes).
parent
15566391
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
4 deletions
+8
-4
file.c
files/file.c
+3
-2
server_protocol.h
include/wine/server_protocol.h
+2
-1
named_pipe.c
server/named_pipe.c
+1
-1
protocol.def
server/protocol.def
+1
-0
trace.c
server/trace.c
+1
-0
No files found.
files/file.c
View file @
693bbd79
...
...
@@ -497,7 +497,7 @@ HANDLE FILE_CreateDevice( int client_id, DWORD access, LPSECURITY_ATTRIBUTES sa
return
ret
;
}
static
HANDLE
FILE_OpenPipe
(
LPCWSTR
name
,
DWORD
access
)
static
HANDLE
FILE_OpenPipe
(
LPCWSTR
name
,
DWORD
access
,
LPSECURITY_ATTRIBUTES
sa
)
{
HANDLE
ret
;
DWORD
len
=
0
;
...
...
@@ -510,6 +510,7 @@ static HANDLE FILE_OpenPipe(LPCWSTR name, DWORD access)
SERVER_START_REQ
(
open_named_pipe
)
{
req
->
access
=
access
;
req
->
inherit
=
(
sa
&&
(
sa
->
nLength
>=
sizeof
(
*
sa
))
&&
sa
->
bInheritHandle
);
SetLastError
(
0
);
wine_server_add_data
(
req
,
name
,
len
*
sizeof
(
WCHAR
)
);
wine_server_call_err
(
req
);
...
...
@@ -597,7 +598,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
if
(
!
strncmpiW
(
filename
+
4
,
pipeW
,
5
))
{
TRACE
(
"Opening a pipe: %s
\n
"
,
debugstr_w
(
filename
));
ret
=
FILE_OpenPipe
(
filename
,
access
);
ret
=
FILE_OpenPipe
(
filename
,
access
,
sa
);
goto
done
;
}
else
if
(
isalphaW
(
filename
[
4
])
&&
filename
[
5
]
==
':'
&&
filename
[
6
]
==
'\0'
)
...
...
include/wine/server_protocol.h
View file @
693bbd79
...
...
@@ -2406,6 +2406,7 @@ struct open_named_pipe_request
{
struct
request_header
__header
;
unsigned
int
access
;
int
inherit
;
/* VARARG(name,unicode_str); */
};
struct
open_named_pipe_reply
...
...
@@ -3568,6 +3569,6 @@ union generic_reply
struct
get_next_hook_reply
get_next_hook_reply
;
};
#define SERVER_PROTOCOL_VERSION 10
8
#define SERVER_PROTOCOL_VERSION 10
9
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/named_pipe.c
View file @
693bbd79
...
...
@@ -683,7 +683,7 @@ DECL_HANDLER(open_named_pipe)
server
->
client
=
client
;
client
->
server
=
server
;
reply
->
handle
=
alloc_handle
(
current
->
process
,
client
,
req
->
access
,
0
);
req
->
access
,
req
->
inherit
);
}
}
else
...
...
server/protocol.def
View file @
693bbd79
...
...
@@ -1710,6 +1710,7 @@ enum message_type
/* Open an existing named pipe */
@REQ(open_named_pipe)
unsigned int access;
int inherit; /* inherit flag */
VARARG(name,unicode_str); /* pipe name */
@REPLY
obj_handle_t handle; /* handle to the pipe */
...
...
server/trace.c
View file @
693bbd79
...
...
@@ -1967,6 +1967,7 @@ static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *
static
void
dump_open_named_pipe_request
(
const
struct
open_named_pipe_request
*
req
)
{
fprintf
(
stderr
,
" access=%08x,"
,
req
->
access
);
fprintf
(
stderr
,
" inherit=%d,"
,
req
->
inherit
);
fprintf
(
stderr
,
" name="
);
dump_varargs_unicode_str
(
cur_size
);
}
...
...
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