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>
This commit is contained in:
parent
58233b47e0
commit
d4e0f0a12f
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue