mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
Fix error setting, both errors are needed
This commit is contained in:
parent
b3f8a6341d
commit
decdca664e
@ -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…
Reference in New Issue
Block a user