]> granicus.if.org Git - php/commitdiff
Fix error setting, both errors are needed
authorAnatol Belski <ab@php.net>
Mon, 17 Sep 2018 11:33:49 +0000 (13:33 +0200)
committerAnatol Belski <ab@php.net>
Mon, 17 Sep 2018 11:34:52 +0000 (13:34 +0200)
Zend/zend_virtual_cwd.c

index 935a529a50de842dd359392b8cf4e63680c43274..574a47daafb4ecbc743507902371eb68bd49b832 100644 (file)
@@ -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