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
9602fa7a
Commit
9602fa7a
authored
May 31, 2014
by
Michael Müller
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix return value for FSCTL_PIPE_WAIT if pipe does not exist.
parent
2227abbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
pipe.c
dlls/kernel32/tests/pipe.c
+6
-0
named_pipe.c
server/named_pipe.c
+1
-1
No files found.
dlls/kernel32/tests/pipe.c
View file @
9602fa7a
...
...
@@ -60,6 +60,12 @@ static void test_CreateNamedPipe(int pipemode)
trace
(
"test_CreateNamedPipe starting in byte mode
\n
"
);
else
trace
(
"test_CreateNamedPipe starting in message mode
\n
"
);
/* Wait for non existing pipe */
ret
=
WaitNamedPipeA
(
PIPENAME
,
2000
);
ok
(
ret
==
0
,
"WaitNamedPipe returned %d for non existing pipe
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %u
\n
"
,
GetLastError
());
/* Bad parameter checks */
hnp
=
CreateNamedPipeA
(
"not a named pipe"
,
PIPE_ACCESS_DUPLEX
,
pipemode
|
PIPE_WAIT
,
/* nMaxInstances */
1
,
...
...
server/named_pipe.c
View file @
9602fa7a
...
...
@@ -900,7 +900,7 @@ static obj_handle_t named_pipe_device_ioctl( struct fd *fd, ioctl_code_t code, c
name
.
len
=
(
buffer
->
NameLength
/
sizeof
(
WCHAR
))
*
sizeof
(
WCHAR
);
if
(
!
(
pipe
=
(
struct
named_pipe
*
)
find_object
(
device
->
pipes
,
&
name
,
OBJ_CASE_INSENSITIVE
)))
{
set_error
(
STATUS_
PIPE_NOT_AVAILABLE
);
set_error
(
STATUS_
OBJECT_NAME_NOT_FOUND
);
return
0
;
}
if
(
!
(
server
=
find_available_server
(
pipe
)))
...
...
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