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
f2686d46
Commit
f2686d46
authored
Nov 02, 2005
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Nov 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error returned when opening nonexistent pipes.
parent
3f85e26a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
om.c
dlls/ntdll/tests/om.c
+2
-2
named_pipe.c
server/named_pipe.c
+1
-5
No files found.
dlls/ntdll/tests/om.c
View file @
f2686d46
...
...
@@ -127,13 +127,13 @@ void test_namespace_pipe(void)
pRtlInitUnicodeString
(
&
str
,
buffer3
);
InitializeObjectAttributes
(
&
attr
,
&
str
,
0
,
0
,
NULL
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_OPEN
);
todo_wine
ok
(
status
==
STATUS_OBJECT_PATH_NOT_FOUND
,
todo_wine
ok
(
status
==
STATUS_OBJECT_PATH_NOT_FOUND
||
status
==
STATUS_PIPE_NOT_AVAILABLE
,
"pNtOpenFile should have failed with STATUS_OBJECT_PATH_NOT_FOUND got(%08lx)
\n
"
,
status
);
pRtlInitUnicodeString
(
&
str
,
buffer4
);
InitializeObjectAttributes
(
&
attr
,
&
str
,
OBJ_CASE_INSENSITIVE
,
0
,
NULL
);
status
=
pNtOpenFile
(
&
h
,
GENERIC_READ
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
FILE_OPEN
);
todo_wine
ok
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
,
ok
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
,
"pNtOpenFile should have failed with STATUS_OBJECT_NAME_NOT_FOUND got(%08lx)
\n
"
,
status
);
pNtClose
(
pipe
);
...
...
server/named_pipe.c
View file @
f2686d46
...
...
@@ -598,12 +598,8 @@ DECL_HANDLER(open_named_pipe)
struct
named_pipe
*
pipe
;
int
fds
[
2
];
pipe
=
open_named_pipe
(
get_req_data
(),
get_req_data_size
(),
req
->
attributes
);
if
(
!
pipe
)
{
set_error
(
STATUS_NO_SUCH_FILE
);
if
(
!
(
pipe
=
open_named_pipe
(
get_req_data
(),
get_req_data_size
(),
req
->
attributes
)))
return
;
}
server
=
find_server2
(
pipe
,
ps_idle_server
,
ps_wait_open
);
release_object
(
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