1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 03:51:48 +00:00
mpv/osdep
James Ross-Gowan 42fa954849 subprocess-win: Always quote argv[0]
If the program name isn't quoted and the .exe it refers to isn't found,
CreateProcess will add the program arguments to the program name and
continue searching, so for "program arg1 arg2", CreateProcess would try
"program.exe", "program arg1.exe", then "program arg1 arg2.exe". This
behaviour is weird and not really desirable, so prevent it by always
quoting the program name.

When quoting argv[0], escape sequences shouldn't be used. msvcrt, .NET
and CommandLineToArgvW all treat argv[0] literally and end it on the
trailing quote, without processing escape sequences.
2015-01-16 22:39:55 +11:00
..
ar
win32 win32: add native wrappers for pthread functions 2015-01-01 15:10:42 +01:00
atomics.h atomics: add atomic_compare_exchange_strong() 2014-11-09 15:12:54 +01:00
compiler.h
endian.h
glob-win.c
io.c win32: add mmap() emulation 2014-12-26 17:30:10 +01:00
io.h win32: add mmap() emulation 2014-12-26 17:30:10 +01:00
macosx_application_objc.h cocoa: ignore first file open events from command line 2014-12-07 21:39:26 +01:00
macosx_application.h cocoa: use --idle when running inside bundle 2014-12-06 14:16:13 +01:00
macosx_application.m cocoa: ignore first file open events from command line 2014-12-07 21:39:26 +01:00
macosx_compat.h
macosx_events_objc.h
macosx_events.h cocoa: post keydown and keyup events without event monitor 2014-10-09 22:14:41 +02:00
macosx_events.m cocoa: use --idle when running inside bundle 2014-12-06 14:16:13 +01:00
macosx_versions.h
mpv.exe.manifest
mpv.rc Update copyright year 2015-01-01 00:00:00 +01:00
path-macosx.m
path-win.c win32: change config path priorities 2014-10-23 10:51:51 +02:00
path.h
semaphore_osx.c
semaphore.h
subprocess-posix.c subprocess: allow disabling redirection of stdout/stderr 2015-01-01 20:04:38 +01:00
subprocess-win.c subprocess-win: Always quote argv[0] 2015-01-16 22:39:55 +11:00
subprocess.h subprocess: minor cosmetic cleanup 2014-11-22 14:38:58 +01:00
terminal-unix.c terminal: always print to stderr with --no-input-terminal 2015-01-07 19:45:44 +01:00
terminal-win.c Set thread name for debugging 2014-10-19 23:48:40 +02:00
terminal.h
threads.c osdep: potentially fix compilation on OpenBSD 2014-10-31 19:44:42 +01:00
threads.h Set thread name for debugging 2014-10-19 23:48:40 +02:00
timer-darwin.c
timer-linux.c
timer-win2.c
timer.c
timer.h
w32_keyboard.c
w32_keyboard.h
win32-console-wrapper.c