=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: cmd: Reuse common string constants.
Alexandre Julliard
julliard at winehq.org
Mon Feb 13 13:43:24 CST 2012
Module: wine
Branch: master
Commit: 7cf307a7bd208a5c194808f71a86b173c6dd2d59
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7cf307a7bd208a5c194808f71a86b173c6dd2d59
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Sat Feb 11 18:24:55 2012 +0100
cmd: Reuse common string constants.
---
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) );
More information about the wine-cvs
mailing list