diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2014-07-05 23:29:47 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-07-05 23:29:47 +0400 |
commit | 11bbbc051bb8087c327179c0db9afde759926555 (patch) | |
tree | 1e0940016bc21cb00a806de9f6aed0b4562f5eb5 /src/os/win32/ngx_files.h | |
parent | 31c1715ce6029d6138bd8082034110de0b3b6629 (diff) |
Win32: ngx_open_dir() and ngx_close_dir() fixes.
The ngx_open_dir() function changed to restore name passed to it. This
fixes removing destination directory in dav module, as caught by dav.t.
The ngx_close_dir() function introduced to properly convert errors, as
FindClose() returns 0 on error.
Diffstat (limited to 'src/os/win32/ngx_files.h')
-rw-r--r-- | src/os/win32/ngx_files.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h index 08e5dc67e..aafb5d0b4 100644 --- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -193,7 +193,7 @@ ngx_int_t ngx_read_dir(ngx_dir_t *dir); #define ngx_read_dir_n "FindNextFile()" -#define ngx_close_dir(d) FindClose((d)->dir) +ngx_int_t ngx_close_dir(ngx_dir_t *dir); #define ngx_close_dir_n "FindClose()" |