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:
parent
4fefafe5cd
commit
ddfc5275af
|
@ -1953,7 +1953,7 @@ static void test_QueryFullProcessImageNameW(void)
|
|||
expect_eq_d(lstrlenW(buf), size);
|
||||
expect_eq_ws_i(buf, module_name);
|
||||
|
||||
hSelf = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, GetCurrentProcessId());
|
||||
hSelf = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, GetCurrentProcessId());
|
||||
/* Real handle */
|
||||
size = sizeof(buf) / sizeof(buf[0]);
|
||||
expect_eq_d(TRUE, pQueryFullProcessImageNameW(hSelf, 0, buf, &size));
|
||||
|
@ -3061,11 +3061,7 @@ static void test_process_info(void)
|
|||
case ProcessWow64Information:
|
||||
case ProcessDefaultHardErrorMode:
|
||||
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:
|
||||
todo_wine
|
||||
ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len);
|
||||
break;
|
||||
|
||||
|
|
|
@ -1469,7 +1469,7 @@ DECL_HANDLER(get_dll_info)
|
|||
{
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue