Commit 1798540c authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

fsutil/tests: Use CRT allocation functions.

parent 699694b2
......@@ -45,11 +45,10 @@ static DWORD runcmd(const char* cmd)
DWORD rc;
/* Create a writable copy for CreateProcessA() */
wcmd = HeapAlloc(GetProcessHeap(), 0, strlen(cmd) + 1);
strcpy(wcmd, cmd);
wcmd = strdup(cmd);
rc = CreateProcessA(NULL, wcmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
HeapFree(GetProcessHeap(), 0, wcmd);
free(wcmd);
if (!rc)
return 260;
......
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