summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/ioutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ioutil.c b/win32/ioutil.c
index 7cfe1de6b2..9a13c1cd6e 100644
--- a/win32/ioutil.c
+++ b/win32/ioutil.c
@@ -311,7 +311,7 @@ PW32IO int php_win32_ioutil_mkdir(const char *path, mode_t mode)
int ret = 0;
DWORD err = 0;
- if (pathw_len < _MAX_PATH && pathw_len > _MAX_PATH - 12) {
+ if (pathw_len < _MAX_PATH && pathw_len >= _MAX_PATH - 12) {
/* Special case here. From the doc:
"When using an API to create a directory, the specified path cannot be