Jacek Caban : server: Support NamedPipeState in FilePipeLocalInformation.
Alexandre Julliard
julliard at winehq.org
Wed Oct 17 18:15:42 CDT 2018
Module: wine
Branch: master
Commit: 68a32b8c8ec34dae99dca9091d1700be03979795
URL: https://source.winehq.org/git/wine.git/?a=commit;h=68a32b8c8ec34dae99dca9091d1700be03979795
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Oct 15 13:41:08 2018 +0200
server: Support NamedPipeState in FilePipeLocalInformation.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/pipe.c | 2 --
server/named_pipe.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/ntdll/tests/pipe.c b/dlls/ntdll/tests/pipe.c
index dcd7c3c..e04672b 100644
--- a/dlls/ntdll/tests/pipe.c
+++ b/dlls/ntdll/tests/pipe.c
@@ -1415,7 +1415,6 @@ static void test_pipe_with_data_state(HANDLE pipe, BOOL is_server, DWORD state)
"NtQueryInformationFile(FilePipeLocalInformation) failed in %s state %u: %x\n",
is_server ? "server" : "client", state, status);
if (!status)
- todo_wine
ok(local_info.NamedPipeState == state, "%s NamedPipeState = %u, expected %u\n",
is_server ? "server" : "client", local_info.NamedPipeState, state);
@@ -1631,7 +1630,6 @@ static void test_pipe_local_info(HANDLE pipe, BOOL is_server, DWORD state)
todo_wine
ok(local_info.WriteQuotaAvailable == (is_server ? 200 : 100), "WriteQuotaAvailable = %u\n",
local_info.WriteQuotaAvailable);
- todo_wine
ok(local_info.NamedPipeState == state, "%s NamedPipeState = %u, expected %u\n",
is_server ? "server" : "client", local_info.NamedPipeState, state);
ok(local_info.NamedPipeEnd == is_server, "NamedPipeEnd = %u\n", local_info.NamedPipeEnd);
diff --git a/server/named_pipe.c b/server/named_pipe.c
index dd2bd8c..3e0da4f 100644
--- a/server/named_pipe.c
+++ b/server/named_pipe.c
@@ -614,7 +614,7 @@ static void pipe_end_get_file_info( struct fd *fd, obj_handle_t handle, unsigned
pipe_info->ReadDataAvailable = 0; /* FIXME */
pipe_info->OutboundQuota = pipe->outsize;
pipe_info->WriteQuotaAvailable = 0; /* FIXME */
- pipe_info->NamedPipeState = 0; /* FIXME */
+ pipe_info->NamedPipeState = pipe_end->state;
pipe_info->NamedPipeEnd = pipe_end->obj.ops == &pipe_server_ops
? FILE_PIPE_SERVER_END : FILE_PIPE_CLIENT_END;
break;
More information about the wine-cvs
mailing list