1
mirror of https://github.com/mpv-player/mpv synced 2024-10-26 07:22:17 +02:00

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

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);