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
68a32b8c
Commit
68a32b8c
authored
Oct 15, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Support NamedPipeState in FilePipeLocalInformation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5f43a1b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
pipe.c
dlls/ntdll/tests/pipe.c
+0
-2
named_pipe.c
server/named_pipe.c
+1
-1
No files found.
dlls/ntdll/tests/pipe.c
View file @
68a32b8c
...
@@ -1415,7 +1415,6 @@ static void test_pipe_with_data_state(HANDLE pipe, BOOL is_server, DWORD state)
...
@@ -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
"
,
"NtQueryInformationFile(FilePipeLocalInformation) failed in %s state %u: %x
\n
"
,
is_server
?
"server"
:
"client"
,
state
,
status
);
is_server
?
"server"
:
"client"
,
state
,
status
);
if
(
!
status
)
if
(
!
status
)
todo_wine
ok
(
local_info
.
NamedPipeState
==
state
,
"%s NamedPipeState = %u, expected %u
\n
"
,
ok
(
local_info
.
NamedPipeState
==
state
,
"%s NamedPipeState = %u, expected %u
\n
"
,
is_server
?
"server"
:
"client"
,
local_info
.
NamedPipeState
,
state
);
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)
...
@@ -1631,7 +1630,6 @@ static void test_pipe_local_info(HANDLE pipe, BOOL is_server, DWORD state)
todo_wine
todo_wine
ok
(
local_info
.
WriteQuotaAvailable
==
(
is_server
?
200
:
100
),
"WriteQuotaAvailable = %u
\n
"
,
ok
(
local_info
.
WriteQuotaAvailable
==
(
is_server
?
200
:
100
),
"WriteQuotaAvailable = %u
\n
"
,
local_info
.
WriteQuotaAvailable
);
local_info
.
WriteQuotaAvailable
);
todo_wine
ok
(
local_info
.
NamedPipeState
==
state
,
"%s NamedPipeState = %u, expected %u
\n
"
,
ok
(
local_info
.
NamedPipeState
==
state
,
"%s NamedPipeState = %u, expected %u
\n
"
,
is_server
?
"server"
:
"client"
,
local_info
.
NamedPipeState
,
state
);
is_server
?
"server"
:
"client"
,
local_info
.
NamedPipeState
,
state
);
ok
(
local_info
.
NamedPipeEnd
==
is_server
,
"NamedPipeEnd = %u
\n
"
,
local_info
.
NamedPipeEnd
);
ok
(
local_info
.
NamedPipeEnd
==
is_server
,
"NamedPipeEnd = %u
\n
"
,
local_info
.
NamedPipeEnd
);
...
...
server/named_pipe.c
View file @
68a32b8c
...
@@ -614,7 +614,7 @@ static void pipe_end_get_file_info( struct fd *fd, obj_handle_t handle, unsigned
...
@@ -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
->
ReadDataAvailable
=
0
;
/* FIXME */
pipe_info
->
OutboundQuota
=
pipe
->
outsize
;
pipe_info
->
OutboundQuota
=
pipe
->
outsize
;
pipe_info
->
WriteQuotaAvailable
=
0
;
/* FIXME */
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
pipe_info
->
NamedPipeEnd
=
pipe_end
->
obj
.
ops
==
&
pipe_server_ops
?
FILE_PIPE_SERVER_END
:
FILE_PIPE_CLIENT_END
;
?
FILE_PIPE_SERVER_END
:
FILE_PIPE_CLIENT_END
;
break
;
break
;
...
...
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