[1/2] cmd: Reuse common string constants
Frédéric Delanoy
frederic.delanoy at gmail.com
Sat Feb 11 11:24:55 CST 2012
---
programs/cmd/builtins.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index a02aa78..d966dc6 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -2477,7 +2477,6 @@ void WCMD_shift (const WCHAR *command) {
*/
void WCMD_start(const WCHAR *command)
{
- static const WCHAR spaceW[] = {' ',0};
static const WCHAR exeW[] = {'\\','c','o','m','m','a','n','d',
'\\','s','t','a','r','t','.','e','x','e',0};
WCHAR file[MAX_PATH];
@@ -2489,7 +2488,7 @@ void WCMD_start(const WCHAR *command)
strcatW( file, exeW );
cmdline = HeapAlloc( GetProcessHeap(), 0, (strlenW(file) + strlenW(command) + 2) * sizeof(WCHAR) );
strcpyW( cmdline, file );
- strcatW( cmdline, spaceW );
+ strcatW( cmdline, space );
strcatW( cmdline, command );
memset( &st, 0, sizeof(STARTUPINFOW) );
--
1.7.9
More information about the wine-patches
mailing list