mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 00:13:37 +00:00
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 a new issue