process: Make PROCESS_QUERY_LIMITED_INFORMATION sufficient for QueryFullProcessImageName().

Signed-off-by: Roman Pisl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Roman Pisl 2016-10-14 21:02:48 +02:00 committed by Alexandre Julliard
parent 4fefafe5cd
commit ddfc5275af
2 changed files with 2 additions and 6 deletions

View File

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

View File

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