win32-console-wrapper: Fix heap corruption

FUCK the Windows API.
This commit is contained in:
Martin Herkt 2014-01-06 11:09:08 +01:00
parent 917374a7bf
commit 995d1c4d98
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ int wmain(int argc, wchar_t **argv, wchar_t **envp)
len = wcslen(exe) + wcslen(args) + 1;
eargs = malloc(len * sizeof(wchar_t));
swprintf(eargs, len, L"%s%s", exe, args);
free(cmd);
LocalFree(cmd);
cr_runproc(exe, eargs);