Skip to content

Commit 871d0aa

Browse files
committed
Merge branch 'PHP-7.2'
* PHP-7.2: Fix condition
2 parents 14db988 + cc26604 commit 871d0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/ioutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ PW32IO int php_win32_ioutil_mkdir_w(const wchar_t *path, mode_t mode)
296296
PHP_WIN32_IOUTIL_CHECK_PATH_W(path, -1, 0)
297297

298298
path_len = wcslen(path);
299-
if (path_len < _MAX_PATH && path_len > _MAX_PATH - 12) {
299+
if (path_len < _MAX_PATH && path_len >= _MAX_PATH - 12) {
300300
/* Special case here. From the doc:
301301
302302
"When using an API to create a directory, the specified path cannot be

0 commit comments

Comments
 (0)