Commit ddfc5275 authored by Roman Pisl's avatar Roman Pisl Committed by Alexandre Julliard

process: Make PROCESS_QUERY_LIMITED_INFORMATION sufficient for QueryFullProcessImageName().

parent 4fefafe5
...@@ -1953,7 +1953,7 @@ static void test_QueryFullProcessImageNameW(void) ...@@ -1953,7 +1953,7 @@ static void test_QueryFullProcessImageNameW(void)
expect_eq_d(lstrlenW(buf), size); expect_eq_d(lstrlenW(buf), size);
expect_eq_ws_i(buf, module_name); expect_eq_ws_i(buf, module_name);
hSelf = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, GetCurrentProcessId()); hSelf = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, GetCurrentProcessId());
/* Real handle */ /* Real handle */
size = sizeof(buf) / sizeof(buf[0]); size = sizeof(buf) / sizeof(buf[0]);
expect_eq_d(TRUE, pQueryFullProcessImageNameW(hSelf, 0, buf, &size)); expect_eq_d(TRUE, pQueryFullProcessImageNameW(hSelf, 0, buf, &size));
...@@ -3061,11 +3061,7 @@ static void test_process_info(void) ...@@ -3061,11 +3061,7 @@ static void test_process_info(void)
case ProcessWow64Information: case ProcessWow64Information:
case ProcessDefaultHardErrorMode: case ProcessDefaultHardErrorMode:
case ProcessHandleCount: case ProcessHandleCount:
ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len);
break;
case ProcessImageFileName: case ProcessImageFileName:
todo_wine
ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len); ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len);
break; break;
......
...@@ -1469,7 +1469,7 @@ DECL_HANDLER(get_dll_info) ...@@ -1469,7 +1469,7 @@ DECL_HANDLER(get_dll_info)
{ {
struct process *process; struct process *process;
if ((process = get_process_from_handle( req->handle, PROCESS_QUERY_INFORMATION ))) if ((process = get_process_from_handle( req->handle, PROCESS_QUERY_LIMITED_INFORMATION )))
{ {
struct process_dll *dll; struct process_dll *dll;
......
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