Skip to content

Commit 35217ab

Browse files
maxbachmanneryksun
andauthored
Update Python/fileutils.c
Co-authored-by: Eryk Sun <[email protected]>
1 parent 65cdd56 commit 35217ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/fileutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ PathCchCombineEx(wchar_t *buffer, size_t bufsize, const wchar_t *dirname,
21992199
size_t file_len = relfile ? wcslen(relfile) : 0;
22002200
/* path is at max dirname + filename + backslash + \0 */
22012201
size_t new_len = dir_len + file_len + 2;
2202-
if (bufsize >= MAXPATHLEN || new_len > bufsize) {
2202+
if (new_len > bufsize) {
22032203
return E_INVALIDARG;
22042204
}
22052205

0 commit comments

Comments
 (0)