fsutil/tests: Use CRT allocation functions.

This commit is contained in:
Alex Henrie 2023-11-01 23:31:21 -06:00 committed by Alexandre Julliard
parent 699694b238
commit 1798540cb7

View file

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