Fix error setting, both errors are needed

This commit is contained in:
Anatol Belski 2018-09-17 13:33:49 +02:00
parent b3f8a6341d
commit decdca664e

View 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