kernel/tests: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Fri Jun 2 13:01:23 CDT 2006
Changelog:
kernel/tests: Write-strings warnings fix.
diff -urN a/dlls/kernel/tests/process.c b/dlls/kernel/tests/process.c
--- a/dlls/kernel/tests/process.c 2006-05-23 17:24:40.000000000 +0100
+++ b/dlls/kernel/tests/process.c 2006-06-02 18:58:19.000000000 +0100
@@ -429,6 +429,9 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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-patches
mailing list