mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 16:28:18 +00:00
wshom: Use the wcsdup function instead of reimplementing it.
This commit is contained in:
parent
42d1346846
commit
9ef927472c
|
@ -1311,8 +1311,7 @@ static WCHAR *split_command( BSTR cmd, WCHAR **params )
|
|||
WCHAR *ret, *ptr;
|
||||
BOOL in_quotes = FALSE;
|
||||
|
||||
if (!(ret = malloc((lstrlenW(cmd) + 1) * sizeof(WCHAR)))) return NULL;
|
||||
lstrcpyW( ret, cmd );
|
||||
if (!(ret = wcsdup(cmd))) return NULL;
|
||||
|
||||
*params = NULL;
|
||||
for (ptr = ret; *ptr; ptr++)
|
||||
|
|
Loading…
Reference in a new issue