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
9ffce009
Commit
9ffce009
authored
Feb 24, 2004
by
Uwe Bonnes
Committed by
Alexandre Julliard
Feb 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass inherit handle flag properly for CreateNamedPipe.
parent
0053b8b2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
2 deletions
+6
-2
sync.c
dlls/kernel/sync.c
+1
-0
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.
dlls/kernel/sync.c
View file @
9ffce009
...
...
@@ -1062,6 +1062,7 @@ HANDLE WINAPI CreateNamedPipeW( LPCWSTR name, DWORD dwOpenMode,
req
->
outsize
=
nOutBufferSize
;
req
->
insize
=
nInBufferSize
;
req
->
timeout
=
nDefaultTimeOut
;
req
->
inherit
=
(
attr
&&
(
attr
->
nLength
>=
sizeof
(
*
attr
))
&&
attr
->
bInheritHandle
);
wine_server_add_data
(
req
,
name
,
len
*
sizeof
(
WCHAR
)
);
SetLastError
(
0
);
if
(
!
wine_server_call_err
(
req
))
ret
=
reply
->
handle
;
...
...
include/wine/server_protocol.h
View file @
9ffce009
...
...
@@ -2414,6 +2414,7 @@ struct create_named_pipe_request
unsigned
int
outsize
;
unsigned
int
insize
;
unsigned
int
timeout
;
int
inherit
;
/* VARARG(name,unicode_str); */
};
struct
create_named_pipe_reply
...
...
@@ -3762,6 +3763,6 @@ union generic_reply
struct
set_global_windows_reply
set_global_windows_reply
;
};
#define SERVER_PROTOCOL_VERSION 13
1
#define SERVER_PROTOCOL_VERSION 13
2
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/named_pipe.c
View file @
9ffce009
...
...
@@ -629,7 +629,7 @@ DECL_HANDLER(create_named_pipe)
{
server
->
state
=
ps_idle_server
;
reply
->
handle
=
alloc_handle
(
current
->
process
,
server
,
GENERIC_READ
|
GENERIC_WRITE
,
0
);
GENERIC_READ
|
GENERIC_WRITE
,
req
->
inherit
);
server
->
pipe
->
instances
++
;
release_object
(
server
);
}
...
...
server/protocol.def
View file @
9ffce009
...
...
@@ -1705,6 +1705,7 @@ enum message_type
unsigned int outsize;
unsigned int insize;
unsigned int timeout;
int inherit; /* inherit flag */
VARARG(name,unicode_str); /* pipe name */
@REPLY
obj_handle_t handle; /* handle to the pipe */
...
...
server/trace.c
View file @
9ffce009
...
...
@@ -2005,6 +2005,7 @@ static void dump_create_named_pipe_request( const struct create_named_pipe_reque
fprintf
(
stderr
,
" outsize=%08x,"
,
req
->
outsize
);
fprintf
(
stderr
,
" insize=%08x,"
,
req
->
insize
);
fprintf
(
stderr
,
" timeout=%08x,"
,
req
->
timeout
);
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