Commit 9ef92747 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

wshom: Use the wcsdup function instead of reimplementing it.

parent 42d13468
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment