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:
parent
917374a7bf
commit
995d1c4d98
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user