fsutil/tests: Use CRT allocation functions.
This commit is contained in:
parent
699694b238
commit
1798540cb7
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue