wshom: Use the wcsdup function instead of reimplementing it.

This commit is contained in:
Alex Henrie 2023-09-19 23:37:54 -06:00 committed by Alexandre Julliard
parent 42d1346846
commit 9ef927472c

View file

@ -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++)