Dmitry Timoshkov : kernel32/test: Fix activation context tests compilation with __WINESRC__ defined.
Alexandre Julliard
julliard at winehq.org
Mon Oct 21 14:58:25 CDT 2013
Module: wine
Branch: master
Commit: 519e2d8a9847e66f7b9ac5f81353d34c17fa873c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=519e2d8a9847e66f7b9ac5f81353d34c17fa873c
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Oct 21 17:01:29 2013 +0900
kernel32/test: Fix activation context tests compilation with __WINESRC__ defined.
---
dlls/kernel32/tests/actctx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/tests/actctx.c b/dlls/kernel32/tests/actctx.c
index ff0e481..19bab72 100644
--- a/dlls/kernel32/tests/actctx.c
+++ b/dlls/kernel32/tests/actctx.c
@@ -2001,7 +2001,7 @@ static void run_child_process(void)
char path[MAX_PATH];
char **argv;
PROCESS_INFORMATION pi;
- STARTUPINFO si = { 0 };
+ STARTUPINFOA si = { 0 };
HANDLE file;
FILETIME now;
BOOL ret;
@@ -2025,7 +2025,7 @@ static void run_child_process(void)
CloseHandle(file);
}
sprintf(cmdline, "\"%s\" %s manifest1", argv[0], argv[1]);
- ret = CreateProcess(argv[0], cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
+ ret = CreateProcessA(argv[0], cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
ok(ret, "Could not create process: %u\n", GetLastError());
winetest_wait_child_process( pi.hProcess );
CloseHandle(pi.hThread);
@@ -2125,7 +2125,7 @@ todo_wine
static BOOL init_funcs(void)
{
- HMODULE hKernel32 = GetModuleHandle("kernel32");
+ HMODULE hKernel32 = GetModuleHandleA("kernel32.dll");
#define X(f) if (!(p##f = (void*)GetProcAddress(hKernel32, #f))) return FALSE;
X(ActivateActCtx);
More information about the wine-cvs
mailing list