There was an error while loading. Please reload this page.
1 parent 65cdd56 commit 35217abCopy full SHA for 35217ab
1 file changed
Python/fileutils.c
@@ -2199,7 +2199,7 @@ PathCchCombineEx(wchar_t *buffer, size_t bufsize, const wchar_t *dirname,
2199
size_t file_len = relfile ? wcslen(relfile) : 0;
2200
/* path is at max dirname + filename + backslash + \0 */
2201
size_t new_len = dir_len + file_len + 2;
2202
- if (bufsize >= MAXPATHLEN || new_len > bufsize) {
+ if (new_len > bufsize) {
2203
return E_INVALIDARG;
2204
}
2205
0 commit comments