Andrew Talbot : kernel/tests: Write-strings warnings fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 2 06:48:31 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: cb1930cf791f29811a36f28578745a61149d97e1
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=cb1930cf791f29811a36f28578745a61149d97e1
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Tue Aug 1 20:16:41 2006 +0100
kernel/tests: Write-strings warnings fix.
---
dlls/kernel/tests/process.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel/tests/process.c b/dlls/kernel/tests/process.c
index 4007483..4b269b2 100644
--- a/dlls/kernel/tests/process.c
+++ b/dlls/kernel/tests/process.c
@@ -795,6 +795,7 @@ static void test_Directory(void)
PROCESS_INFORMATION info;
STARTUPINFOA startup;
char windir[MAX_PATH];
+ static CHAR cmdline[] = "winver.exe";
memset(&startup, 0, sizeof(startup));
startup.cb = sizeof(startup);
@@ -816,13 +817,13 @@ static void test_Directory(void)
assert(DeleteFileA(resfile) != 0);
/* search PATH for the exe if directory is NULL */
- ok(CreateProcessA(NULL, "winver.exe", NULL, NULL, FALSE, 0L, NULL, NULL, &startup, &info), "CreateProcess\n");
+ ok(CreateProcessA(NULL, cmdline, NULL, NULL, FALSE, 0L, NULL, NULL, &startup, &info), "CreateProcess\n");
ok(TerminateProcess(info.hProcess, 0), "Child process termination\n");
/* if any directory is provided, don't search PATH, error on bad directory */
SetLastError(0xdeadbeef);
memset(&info, 0, sizeof(info));
- ok(!CreateProcessA(NULL, "winver.exe", NULL, NULL, FALSE, 0L,
+ ok(!CreateProcessA(NULL, cmdline, NULL, NULL, FALSE, 0L,
NULL, "non\\existent\\directory", &startup, &info), "CreateProcess\n");
ok(GetLastError() == ERROR_DIRECTORY, "Expected ERROR_DIRECTORY, got %ld\n", GetLastError());
ok(!TerminateProcess(info.hProcess, 0), "Child process should not exist\n");
More information about the wine-cvs
mailing list