From: Anatol Belski Date: Mon, 17 Sep 2018 11:33:49 +0000 (+0200) Subject: Fix error setting, both errors are needed X-Git-Tag: php-7.4.0alpha1~1900 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=decdca664e6843487fbb7cad6f55c2a27110a4e6;p=php Fix error setting, both errors are needed --- diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c index 935a529a50..574a47daaf 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