diff options
-rw-r--r-- | win32/ioutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ioutil.c b/win32/ioutil.c index 9e54e96342..2ff62e3b6c 100644 --- a/win32/ioutil.c +++ b/win32/ioutil.c @@ -296,7 +296,7 @@ PW32IO int php_win32_ioutil_mkdir_w(const wchar_t *path, mode_t mode) PHP_WIN32_IOUTIL_CHECK_PATH_W(path, -1, 0) path_len = wcslen(path); - if (path_len < _MAX_PATH && path_len > _MAX_PATH - 12) { + if (path_len < _MAX_PATH && path_len >= _MAX_PATH - 12) { /* Special case here. From the doc: "When using an API to create a directory, the specified path cannot be |