Andrew Talbot : kernel/tests: Write-strings warnings fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 7 09:13:41 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 0ba64e58e51d907c90f514b486d9fcb140cba4b2
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0ba64e58e51d907c90f514b486d9fcb140cba4b2
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Fri Jun 2 19:01:23 2006 +0100
kernel/tests: Write-strings warnings fix.
---
dlls/kernel/tests/process.c | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/dlls/kernel/tests/process.c b/dlls/kernel/tests/process.c
index 8dc09d5..4007483 100644
--- a/dlls/kernel/tests/process.c
+++ b/dlls/kernel/tests/process.c
@@ -429,6 +429,9 @@ static void test_Startup(void)
char buffer[MAX_PATH];
PROCESS_INFORMATION info;
STARTUPINFOA startup,si;
+ static CHAR title[] = "I'm the title string",
+ desktop[] = "I'm the desktop string",
+ empty[] = "";
/* let's start simplistic */
memset(&startup, 0, sizeof(startup));
@@ -465,8 +468,8 @@ static void test_Startup(void)
startup.cb = sizeof(startup);
startup.dwFlags = STARTF_USESHOWWINDOW;
startup.wShowWindow = SW_SHOWNORMAL;
- startup.lpTitle = "I'm the title string";
- startup.lpDesktop = "I'm the desktop string";
+ startup.lpTitle = title;
+ startup.lpDesktop = desktop;
startup.dwXCountChars = 0x12121212;
startup.dwYCountChars = 0x23232323;
startup.dwX = 0x34343434;
@@ -503,7 +506,7 @@ static void test_Startup(void)
startup.cb = sizeof(startup);
startup.dwFlags = STARTF_USESHOWWINDOW;
startup.wShowWindow = SW_SHOWNORMAL;
- startup.lpTitle = "I'm the title string";
+ startup.lpTitle = title;
startup.lpDesktop = NULL;
startup.dwXCountChars = 0x12121212;
startup.dwYCountChars = 0x23232323;
@@ -541,8 +544,8 @@ static void test_Startup(void)
startup.cb = sizeof(startup);
startup.dwFlags = STARTF_USESHOWWINDOW;
startup.wShowWindow = SW_SHOWNORMAL;
- startup.lpTitle = "I'm the title string";
- startup.lpDesktop = "";
+ startup.lpTitle = title;
+ startup.lpDesktop = empty;
startup.dwXCountChars = 0x12121212;
startup.dwYCountChars = 0x23232323;
startup.dwX = 0x34343434;
@@ -580,7 +583,7 @@ static void test_Startup(void)
startup.dwFlags = STARTF_USESHOWWINDOW;
startup.wShowWindow = SW_SHOWNORMAL;
startup.lpTitle = NULL;
- startup.lpDesktop = "I'm the desktop string";
+ startup.lpDesktop = desktop;
startup.dwXCountChars = 0x12121212;
startup.dwYCountChars = 0x23232323;
startup.dwX = 0x34343434;
@@ -617,8 +620,8 @@ static void test_Startup(void)
startup.cb = sizeof(startup);
startup.dwFlags = STARTF_USESHOWWINDOW;
startup.wShowWindow = SW_SHOWNORMAL;
- startup.lpTitle = "";
- startup.lpDesktop = "I'm the desktop string";
+ startup.lpTitle = empty;
+ startup.lpDesktop = desktop;
startup.dwXCountChars = 0x12121212;
startup.dwYCountChars = 0x23232323;
startup.dwX = 0x34343434;
@@ -655,8 +658,8 @@ static void test_Startup(void)
startup.cb = sizeof(startup);
startup.dwFlags = STARTF_USESHOWWINDOW;
startup.wShowWindow = SW_SHOWNORMAL;
- startup.lpTitle = "";
- startup.lpDesktop = "";
+ startup.lpTitle = empty;
+ startup.lpDesktop = empty;
startup.dwXCountChars = 0x12121212;
startup.dwYCountChars = 0x23232323;
startup.dwX = 0x34343434;
More information about the wine-cvs
mailing list