|author||James Ross-Gowan <firstname.lastname@example.org>||2015-01-16 22:21:02 +1100|
|committer||James Ross-Gowan <email@example.com>||2015-01-16 22:39:55 +1100|
subprocess-win: Always quote argv
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, escape sequences shouldn't be used. msvcrt, .NET and CommandLineToArgvW all treat argv literally and end it on the trailing quote, without processing escape sequences.
Diffstat (limited to 'player/video.c')
0 files changed, 0 insertions, 0 deletions