0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.172

Problem:    MS-Windows: rename() might delete the file if the name differs but
            it's actually the same file.
Solution:   Use the file handle to check if it's the same file. (Yukihiro
            Nakadaira)
This commit is contained in:
Bram Moolenaar
2011-05-05 16:41:24 +02:00
parent 85de20665f
commit 1c32dff7d6
6 changed files with 59 additions and 20 deletions

View File

@@ -2217,4 +2217,10 @@ typedef int VimClipboard; /* This is required for the prototypes. */
#define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */
#define KEYLEN_REMOVED 9999 /* keylen value for removed sequence */
/* Return values from win32_fileinfo(). */
#define FILEINFO_OK 0
#define FILEINFO_ENC_FAIL 1 /* enc_to_utf16() failed */
#define FILEINFO_READ_FAIL 2 /* CreateFile() failed */
#define FILEINFO_INFO_FAIL 3 /* GetFileInformationByHandle() failed */
#endif /* VIM__H */