diff options
| author | Steve Dower <steve.dower@python.org> | 2022-07-26 21:24:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-26 21:24:44 +0100 |
| commit | 7ac5bb3e6a1cf780aea8164fdba09db993a21d6f (patch) | |
| tree | 5fd3455f5548d0f95d77fe1414f683ddde53d4a9 /PC | |
| parent | 51c56f8d7242e98d5d6a3c7a7c51fe40f3da4512 (diff) | |
| download | cpython-git-7ac5bb3e6a1cf780aea8164fdba09db993a21d6f.tar.gz | |
gh-95285: py.exe launcher fails with short argv0 (GH-95295)
Diffstat (limited to 'PC')
| -rw-r--r-- | PC/launcher2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/launcher2.c b/PC/launcher2.c index c8ed1b0f7c..31b5617771 100644 --- a/PC/launcher2.c +++ b/PC/launcher2.c @@ -580,6 +580,9 @@ parseCommandLine(SearchInfo *search) break; } } + if (tail == search->originalCmdLine && tail[0] == L'"') { + ++tail; + } // Without special cases, we can now fill in the search struct int tailLen = (int)(end ? (end - tail) : wcsnlen_s(tail, MAXLEN)); search->executableLength = -1; |
