mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
gh-95285: py.exe launcher fails with short argv0 (GH-95295) (GH-95298)
(cherry picked from commit 7ac5bb3e6a)
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
parent
0d812a58a7
commit
7df3a1ce4b
3 changed files with 20 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue