1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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:
Bernhard Übelacker 2024-01-02 15:34:36 +01:00 committed by Alexandre Julliard
parent 6164432aa7
commit 702aeb3acb
2 changed files with 2 additions and 2 deletions

View file

@ -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),

View file

@ -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: