server: For querying thread information demand THREAD_QUERY_LIMITED_INFORMATION access.
This commit is contained in:
parent
1d2241eca3
commit
3bed65b5a9
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue