mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
advapi32/tests: Add a test to show that THREAD_QUERY_INFORMATION should grant THREAD_QUERY_LIMITED_INFORMATION.
This commit is contained in:
parent
d5f8dd3aac
commit
48ed6a6f3e
@ -5495,6 +5495,16 @@ todo_wine
|
||||
CloseHandle(dup);
|
||||
}
|
||||
|
||||
SetLastError( 0xdeadbeef );
|
||||
ret = DuplicateHandle(GetCurrentProcess(), thread, GetCurrentProcess(), &dup,
|
||||
THREAD_QUERY_INFORMATION, FALSE, 0);
|
||||
ok(ret, "DuplicateHandle error %d\n", GetLastError());
|
||||
access = get_obj_access(dup);
|
||||
ok(access == (THREAD_QUERY_INFORMATION | THREAD_QUERY_LIMITED_INFORMATION) /* Vista+ */ ||
|
||||
access == THREAD_QUERY_INFORMATION /* before Vista */,
|
||||
"expected THREAD_QUERY_INFORMATION|THREAD_QUERY_LIMITED_INFORMATION, got %#x\n", access);
|
||||
CloseHandle(dup);
|
||||
|
||||
TerminateThread(thread, 0);
|
||||
CloseHandle(thread);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user