Mercurial > hg > nginx-quic
diff src/os/win32/ngx_files.h @ 3382:6be1f25bae90
fix Win32 error messages when an temporary file replaces an existent file:
*) do not rename an already renamed file
*) now ngx_win32_rename_file() returns error code
*) do not log failure inside ngx_win32_rename_file()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 15 Dec 2009 13:47:02 +0000 |
parents | 26784c34e8be |
children | ac281bc4c187 |
line wrap: on
line diff
--- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -111,7 +111,7 @@ ssize_t ngx_write_console(ngx_fd_t fd, v #define ngx_rename_file(o, n) MoveFile((const char *) o, (const char *) n) #define ngx_rename_file_n "MoveFile()" -ngx_int_t ngx_win32_rename_file(ngx_str_t *from, ngx_str_t *to, ngx_log_t *log); +ngx_err_t ngx_win32_rename_file(ngx_str_t *from, ngx_str_t *to, ngx_log_t *log);