From ddfc5275af0081cba6e834bf9d9e35dcaa17d256 Mon Sep 17 00:00:00 2001 From: Roman Pisl Date: Fri, 14 Oct 2016 21:02:48 +0200 Subject: [PATCH] process: Make PROCESS_QUERY_LIMITED_INFORMATION sufficient for QueryFullProcessImageName(). Signed-off-by: Roman Pisl Signed-off-by: Alexandre Julliard --- dlls/kernel32/tests/process.c | 6 +----- server/process.c | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c index 8a135ef670..513112682e 100644 --- a/dlls/kernel32/tests/process.c +++ b/dlls/kernel32/tests/process.c @@ -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; diff --git a/server/process.c b/server/process.c index 2f2d1ade2e..528ec747d4 100644 --- a/server/process.c +++ b/server/process.c @@ -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;