Commit d4e0f0a1 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

server: Require FILE_READ_ATTRIBUTES access in get_named_pipe_info.

parent 58233b47
...@@ -756,16 +756,18 @@ static void test_filepipeinfo(void) ...@@ -756,16 +756,18 @@ static void test_filepipeinfo(void)
res = pNtQueryInformationFile(hClient, &iosb, &local_info, sizeof(local_info), res = pNtQueryInformationFile(hClient, &iosb, &local_info, sizeof(local_info),
FilePipeLocalInformation); FilePipeLocalInformation);
todo_wine
ok(res == STATUS_ACCESS_DENIED, ok(res == STATUS_ACCESS_DENIED,
"NtQueryInformationFile(FilePipeLocalInformation) returned: %x\n", res); "NtQueryInformationFile(FilePipeLocalInformation) returned: %x\n", res);
res = pNtQueryInformationFile(hClient, &iosb, &local_info, sizeof(local_info), res = pNtQueryInformationFile(hClient, &iosb, &local_info, sizeof(local_info),
FilePipeInformation); FilePipeInformation);
todo_wine
ok(res == STATUS_ACCESS_DENIED, ok(res == STATUS_ACCESS_DENIED,
"NtQueryInformationFile(FilePipeInformation) returned: %x\n", res); "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(hClient);
CloseHandle(hServer); CloseHandle(hServer);
} }
......
...@@ -1284,7 +1284,7 @@ DECL_HANDLER(get_named_pipe_info) ...@@ -1284,7 +1284,7 @@ DECL_HANDLER(get_named_pipe_info)
clear_error(); clear_error();
pipe_end = (struct pipe_end *)get_handle_obj( current->process, req->handle, 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; if (!pipe_end) return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment