mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
win32-console-wrapper: Fix heap corruption
FUCK the Windows API.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user