Commit 702aeb3a authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Alexandre Julliard

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
parent 6164432a
...@@ -1852,7 +1852,7 @@ static void test_OpenProcess(void) ...@@ -1852,7 +1852,7 @@ static void test_OpenProcess(void)
ok(info.Type == MEM_PRIVATE, "%lx != MEM_PRIVATE\n", info.Type); ok(info.Type == MEM_PRIVATE, "%lx != MEM_PRIVATE\n", info.Type);
} }
else /* before win8 */ 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); SetLastError(0xdeadbeef);
ok(!VirtualFreeEx(hproc, addr1, 0, MEM_RELEASE), ok(!VirtualFreeEx(hproc, addr1, 0, MEM_RELEASE),
......
...@@ -1734,7 +1734,7 @@ DECL_HANDLER(queue_apc) ...@@ -1734,7 +1734,7 @@ DECL_HANDLER(queue_apc)
process = get_process_from_handle( req->handle, PROCESS_VM_OPERATION ); process = get_process_from_handle( req->handle, PROCESS_VM_OPERATION );
break; break;
case APC_VIRTUAL_QUERY: 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; break;
case APC_MAP_VIEW: case APC_MAP_VIEW:
case APC_MAP_VIEW_EX: case APC_MAP_VIEW_EX:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment