diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-27 08:06:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 08:06:59 (GMT) |
commit | 7df3a1ce4bf820fb783cc87f2e8ab2abe5ef43fa (patch) | |
tree | 595e3364861e996d0034c4d33b6e308b78d39641 /PC | |
parent | 0d812a58a79ea1520223e3539393d190503dedcf (diff) | |
download | cpython-7df3a1ce4bf820fb783cc87f2e8ab2abe5ef43fa.zip cpython-7df3a1ce4bf820fb783cc87f2e8ab2abe5ef43fa.tar.gz cpython-7df3a1ce4bf820fb783cc87f2e8ab2abe5ef43fa.tar.bz2 |
gh-95285: py.exe launcher fails with short argv0 (GH-95295) (GH-95298)
(cherry picked from commit 7ac5bb3e6a1cf780aea8164fdba09db993a21d6f)
Co-authored-by: Steve Dower <steve.dower@python.org>
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 c8ed1b0..31b5617 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; |