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
e4c2a6d1
Commit
e4c2a6d1
authored
Sep 29, 2011
by
Bernhard Loos
Committed by
Alexandre Julliard
Oct 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: It's possible to call NtQueryInformationFile on a pipe if it was opened with access 0.
parent
c2015d33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
pipe.c
dlls/ntdll/tests/pipe.c
+1
-1
named_pipe.c
server/named_pipe.c
+4
-1
No files found.
dlls/ntdll/tests/pipe.c
View file @
e4c2a6d1
...
...
@@ -160,7 +160,7 @@ static void test_create_invalid(void)
ok
(
!
res
,
"NtCreateNamedPipeFile returned %x
\n
"
,
res
);
res
=
pNtQueryInformationFile
(
handle
,
&
iosb
,
&
info
,
sizeof
(
info
),
(
FILE_INFORMATION_CLASS
)
24
);
todo_wine
ok
(
res
==
STATUS_ACCESS_DENIED
,
"NtQueryInformationFile returned %x
\n
"
,
res
);
ok
(
res
==
STATUS_ACCESS_DENIED
,
"NtQueryInformationFile returned %x
\n
"
,
res
);
/* test FILE_CREATE creation disposition */
res
=
pNtCreateNamedPipeFile
(
&
handle2
,
SYNCHRONIZE
,
&
attr
,
&
iosb
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
2
/*FILE_CREATE*/
,
...
...
server/named_pipe.c
View file @
e4c2a6d1
...
...
@@ -1005,9 +1005,12 @@ DECL_HANDLER(get_named_pipe_info)
server
=
get_pipe_server_obj
(
current
->
process
,
req
->
handle
,
FILE_READ_ATTRIBUTES
);
if
(
!
server
)
{
if
(
get_error
()
!=
STATUS_OBJECT_TYPE_MISMATCH
)
return
;
clear_error
();
client
=
(
struct
pipe_client
*
)
get_handle_obj
(
current
->
process
,
req
->
handle
,
FILE_READ_ATTRIBUTES
,
&
pipe_client_ops
);
0
,
&
pipe_client_ops
);
if
(
!
client
)
return
;
server
=
client
->
server
;
}
...
...
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