- get the right error on windows

This commit is contained in:
Pierre Joye 2010-02-21 17:44:25 +00:00
parent dd6ecfc01e
commit acc6609a27

View File

@ -866,6 +866,10 @@ static php_stream *php_plain_files_dir_opener(php_stream_wrapper *wrapper, char
dir = VCWD_OPENDIR(path);
#ifdef PHP_WIN32
if (!dir) {
php_win32_docref2_from_error(GetLastError(), path, path TSRMLS_CC);
}
if (dir && dir->finished) {
closedir(dir);
dir = NULL;