server: For querying thread information demand THREAD_QUERY_LIMITED_INFORMATION access.

This commit is contained in:
Dmitry Timoshkov 2015-08-21 12:14:23 +08:00 committed by Alexandre Julliard
parent 1d2241eca3
commit 3bed65b5a9
2 changed files with 7 additions and 2 deletions

View file

@ -1750,14 +1750,19 @@ static void test_thread_info(void)
switch (i)
{
case ThreadBasicInformation:
case ThreadTimes:
case ThreadAmILastThread:
case ThreadPriorityBoost:
ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len);
break;
case ThreadTimes:
todo_wine
ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len);
break;
case ThreadDescriptorTableEntry:
case ThreadAffinityMask:
case ThreadQuerySetWin32StartAddress:
todo_wine
ok(status == STATUS_ACCESS_DENIED, "for info %u expected STATUS_ACCESS_DENIED, got %08x (ret_len %u)\n", i, status, ret_len);
break;

View file

@ -1372,7 +1372,7 @@ DECL_HANDLER(get_thread_info)
obj_handle_t handle = req->handle;
if (!handle) thread = get_thread_from_id( req->tid_in );
else thread = get_thread_from_handle( req->handle, THREAD_QUERY_INFORMATION );
else thread = get_thread_from_handle( req->handle, THREAD_QUERY_LIMITED_INFORMATION );
if (thread)
{