mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix error setting, both errors are needed
This commit is contained in:
parent
b3f8a6341d
commit
decdca664e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue