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
d4e0f0a1
Commit
d4e0f0a1
authored
Aug 20, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Require FILE_READ_ATTRIBUTES access in get_named_pipe_info.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
58233b47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
pipe.c
dlls/ntdll/tests/pipe.c
+4
-2
named_pipe.c
server/named_pipe.c
+1
-1
No files found.
dlls/ntdll/tests/pipe.c
View file @
d4e0f0a1
...
...
@@ -756,16 +756,18 @@ static void test_filepipeinfo(void)
res
=
pNtQueryInformationFile
(
hClient
,
&
iosb
,
&
local_info
,
sizeof
(
local_info
),
FilePipeLocalInformation
);
todo_wine
ok
(
res
==
STATUS_ACCESS_DENIED
,
"NtQueryInformationFile(FilePipeLocalInformation) returned: %x
\n
"
,
res
);
res
=
pNtQueryInformationFile
(
hClient
,
&
iosb
,
&
local_info
,
sizeof
(
local_info
),
FilePipeInformation
);
todo_wine
ok
(
res
==
STATUS_ACCESS_DENIED
,
"NtQueryInformationFile(FilePipeInformation) returned: %x
\n
"
,
res
);
res
=
pNtQueryInformationFile
(
hClient
,
&
iosb
,
&
local_info
,
sizeof
(
local_info
),
FileNameInformation
);
ok
(
res
==
STATUS_SUCCESS
,
"NtQueryInformationFile(FileNameInformation) returned: %x
\n
"
,
res
);
CloseHandle
(
hClient
);
CloseHandle
(
hServer
);
}
...
...
server/named_pipe.c
View file @
d4e0f0a1
...
...
@@ -1284,7 +1284,7 @@ DECL_HANDLER(get_named_pipe_info)
clear_error
();
pipe_end
=
(
struct
pipe_end
*
)
get_handle_obj
(
current
->
process
,
req
->
handle
,
0
,
&
pipe_client_ops
);
FILE_READ_ATTRIBUTES
,
&
pipe_client_ops
);
if
(
!
pipe_end
)
return
;
}
...
...
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