gh-95285: py.exe launcher fails with short argv0 (GH-95295)

This commit is contained in:
Steve Dower 2022-07-26 21:24:44 +01:00 • committed by GitHub
parent 51c56f8d72
commit 7ac5bb3e6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 3 deletions

View file

@ -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;