start.exe: build_args now returns the correct string when no parameter
is passed.
This commit is contained in:
parent
a8ef244b89
commit
1c9e1f3473
|
@ -109,6 +109,7 @@ static char *build_args( int argc, char **argv )
|
|||
for (i = 0; i < argc; i++ )
|
||||
len += strlen(argv[i]) + 1;
|
||||
ret = HeapAlloc( GetProcessHeap(), 0, len );
|
||||
ret[0] = 0;
|
||||
|
||||
for (i = 0, p = ret; i < argc; i++ )
|
||||
p += sprintf(p, " %s", argv[i]);
|
||||
|
|
Loading…
Reference in New Issue