server: Allow VirtualQueryEx on "limited" handle.
A handle created with just PROCESS_QUERY_LIMITED_INFORMATION should allow VirtualQueryEx / APC_VIRTUAL_QUERY. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56093
This commit is contained in:
parent
6164432aa7
commit
702aeb3acb
2 changed files with 2 additions and 2 deletions
|
@ -1852,7 +1852,7 @@ static void test_OpenProcess(void)
|
|||
ok(info.Type == MEM_PRIVATE, "%lx != MEM_PRIVATE\n", info.Type);
|
||||
}
|
||||
else /* before win8 */
|
||||
ok(GetLastError() == ERROR_ACCESS_DENIED, "wrong error %ld\n", GetLastError());
|
||||
ok(broken(GetLastError() == ERROR_ACCESS_DENIED), "wrong error %ld\n", GetLastError());
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
ok(!VirtualFreeEx(hproc, addr1, 0, MEM_RELEASE),
|
||||
|
|
|
@ -1734,7 +1734,7 @@ DECL_HANDLER(queue_apc)
|
|||
process = get_process_from_handle( req->handle, PROCESS_VM_OPERATION );
|
||||
break;
|
||||
case APC_VIRTUAL_QUERY:
|
||||
process = get_process_from_handle( req->handle, PROCESS_QUERY_INFORMATION );
|
||||
process = get_process_from_handle( req->handle, PROCESS_QUERY_LIMITED_INFORMATION );
|
||||
break;
|
||||
case APC_MAP_VIEW:
|
||||
case APC_MAP_VIEW_EX:
|
||||
|
|
Loading…
Add table
Reference in a new issue