mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:53:45 +00:00
fsutil/tests: Use CRT allocation functions.
This commit is contained in:
parent
699694b238
commit
1798540cb7
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue