From decdca664e6843487fbb7cad6f55c2a27110a4e6 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 17 Sep 2018 13:33:49 +0200 Subject: [PATCH] Fix error setting, both errors are needed --- Zend/zend_virtual_cwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c index 935a529a50d..574a47daafb 100644 --- a/Zend/zend_virtual_cwd.c +++ b/Zend/zend_virtual_cwd.c @@ -1078,7 +1078,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func if (!path_length || path_length >= MAXPATHLEN-1) { #ifdef ZEND_WIN32 - _set_errno(EINVAL); + SET_ERRNO_FROM_WIN32_CODE(ERROR_PATH_NOT_FOUND); #else errno = EINVAL; #endif