[PATCH] psapi/tests: Avoid linking statically to kernel32 functions.

Zebediah Figura z.figura12 at gmail.com
Thu Jul 5 04:47:44 CDT 2018


Since they are not available everywhere.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/psapi/tests/psapi_main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/psapi/tests/psapi_main.c b/dlls/psapi/tests/psapi_main.c
index 13205b3..0c25668 100644
--- a/dlls/psapi/tests/psapi_main.c
+++ b/dlls/psapi/tests/psapi_main.c
@@ -199,16 +199,16 @@ static void test_EnumProcessModules(void)
         ok(!!hMod, "expected non-NULL module\n");
         ok(cbNeeded % sizeof(hMod) == 0, "got %u\n", cbNeeded);
 
-        ret = GetModuleBaseNameA(pi.hProcess, hMod, name, sizeof(name));
+        ret = pGetModuleBaseNameA(pi.hProcess, hMod, name, sizeof(name));
         ok(ret, "got error %u\n", GetLastError());
         ok(!strcmp(name, "notepad.exe"), "got %s\n", name);
 
-        ret = GetModuleFileNameExA(pi.hProcess, hMod, name, sizeof(name));
+        ret = pGetModuleFileNameExA(pi.hProcess, hMod, name, sizeof(name));
         ok(ret, "got error %u\n", GetLastError());
 todo_wine
         ok(!strcmp(name, buffer), "got %s\n", name);
 
-        ret = GetModuleInformation(pi.hProcess, hMod, &info, sizeof(info));
+        ret = pGetModuleInformation(pi.hProcess, hMod, &info, sizeof(info));
         ok(ret, "got error %u\n", GetLastError());
         ok(info.lpBaseOfDll == hMod, "expected %p, got %p\n", hMod, info.lpBaseOfDll);
         ok(info.SizeOfImage, "image size was 0\n");
-- 
2.7.4




More information about the wine-devel mailing list