aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_files.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32/ngx_files.c')
-rw-r--r--src/os/win32/ngx_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/win32/ngx_files.c b/src/os/win32/ngx_files.c
index 3bb79b89e..fab74ae4d 100644
--- a/src/os/win32/ngx_files.c
+++ b/src/os/win32/ngx_files.c
@@ -322,7 +322,6 @@ ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir)
}
dir->valid_info = 1;
- dir->valid_type = 1;
dir->ready = 1;
return NGX_OK;
@@ -338,6 +337,7 @@ ngx_read_dir(ngx_dir_t *dir)
}
if (FindNextFile(dir->dir, &dir->finddata) != 0) {
+ dir->type = 1;
return NGX_OK;
}