1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 10:32:15 +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 Kill all tabs 2014-04-13 18:03:01 +02:00
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 Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
endian.h audio: drop swapped-endian audio formats 2014-09-23 23:09:25 +02:00
glob-win.c glob-win: support Unicode 2014-04-21 02:57:16 +02:00
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 cocoa: fix compilation on OS X 10.8 2014-07-14 07:21:44 +02:00
macosx_events_objc.h cocoa: move handleFilesArray: to macosx_events 2014-08-06 09:31:58 +02:00
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 cocoa: fix compilation on OS X 10.8 2014-07-14 07:21:44 +02:00
mpv.exe.manifest
mpv.rc Update copyright year 2015-01-01 00:00:00 +01:00
path-macosx.m config: use the same signature for win32/OSX specific path functions 2014-06-26 19:56:45 +02:00
path-win.c win32: change config path priorities 2014-10-23 10:51:51 +02:00
path.h config: use the same signature for win32/OSX specific path functions 2014-06-26 19:56:45 +02:00
semaphore_osx.c osdep/semaphore_osx.c: Include osdep/semaphore.h before #ifdef 2014-09-10 17:22:20 +09:00
semaphore.h osdep: hack to fix build with low quality pthreads-w32 headers 2014-09-20 04:18:40 +02:00
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 terminal-unix: move to thread 2014-09-10 00:48:12 +02:00
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: reduce ifdef headsplitting-factor 2014-03-09 16:58:00 +01:00
timer-win2.c
timer.c timer: remove unneeded time_t overflow check 2014-05-24 16:17:45 +02:00
timer.h threads: use mpv time for mpthread_cond_timedwait wrapper 2014-05-18 19:20:32 +02:00
w32_keyboard.c
w32_keyboard.h
win32-console-wrapper.c