1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

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;
/* 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;