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
bb7c1191
Commit
bb7c1191
authored
Sep 17, 2019
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Implement wait_for_incoming_data() for named pipes transport.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68a9cbcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+26
-3
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
bb7c1191
...
...
@@ -463,10 +463,33 @@ static void rpcrt4_conn_np_cancel_call(RpcConnection *conn)
CancelIoEx
(
connection
->
pipe
,
NULL
);
}
static
int
rpcrt4_conn_np_wait_for_incoming_data
(
RpcConnection
*
Connectio
n
)
static
int
rpcrt4_conn_np_wait_for_incoming_data
(
RpcConnection
*
con
n
)
{
/* FIXME: implement when named pipe writes use overlapped I/O */
return
-
1
;
RpcConnection_np
*
connection
=
(
RpcConnection_np
*
)
conn
;
FILE_PIPE_PEEK_BUFFER
buf
;
HANDLE
event
;
NTSTATUS
status
;
int
ret
;
event
=
get_np_event
(
connection
);
if
(
!
event
)
return
-
1
;
status
=
NtFsControlFile
(
connection
->
pipe
,
event
,
NULL
,
NULL
,
&
connection
->
io_status
,
FSCTL_PIPE_PEEK
,
NULL
,
0
,
&
buf
,
sizeof
(
buf
));
if
(
status
==
STATUS_SUCCESS
)
ret
=
0
;
else
if
(
status
==
STATUS_PENDING
)
{
WaitForSingleObject
(
event
,
INFINITE
);
ret
=
0
;
}
else
{
WARN
(
"NtFsControlFile error %08x
\n
"
,
status
);
ret
=
-
1
;
}
release_np_event
(
connection
,
event
);
return
ret
;
}
static
size_t
rpcrt4_ncacn_np_get_top_of_tower
(
unsigned
char
*
tower_data
,
...
...
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