Mercurial > vim
comparison src/os_mswin.c @ 16831:f42aa3d90b12 v8.1.1417
patch 8.1.1417: MS-Windows: resolve() does not resolve all components of path
commit https://github.com/vim/vim/commit/1bbebab5255b5300d727c9b3f1b308205847dafd
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 29 20:36:54 2019 +0200
patch 8.1.1417: MS-Windows: resolve() does not resolve all components of path
Problem: MS-Windows: resolve() does not resolve all components of the path.
(David Briscoe)
Solution: Do not bail out for a reparse point. (Yasuhiro Matsumoto,
closes #4211, closes #4447)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 May 2019 20:45:05 +0200 |
parents | ce04ebdf26b8 |
children | efd36a9052cc |
comparison
equal
deleted
inserted
replaced
16830:20191617fa3f | 16831:f42aa3d90b12 |
---|---|
1785 | 1785 |
1786 p = enc_to_utf16(fname, NULL); | 1786 p = enc_to_utf16(fname, NULL); |
1787 if (p == NULL) | 1787 if (p == NULL) |
1788 goto fail; | 1788 goto fail; |
1789 | 1789 |
1790 if ((GetFileAttributesW(p) & FILE_ATTRIBUTE_REPARSE_POINT) == 0) | |
1791 { | |
1792 vim_free(p); | |
1793 goto fail; | |
1794 } | |
1795 | |
1796 h = CreateFileW(p, 0, 0, NULL, OPEN_EXISTING, | 1790 h = CreateFileW(p, 0, 0, NULL, OPEN_EXISTING, |
1797 FILE_FLAG_BACKUP_SEMANTICS, NULL); | 1791 FILE_FLAG_BACKUP_SEMANTICS, NULL); |
1798 vim_free(p); | 1792 vim_free(p); |
1799 | 1793 |
1800 if (h == INVALID_HANDLE_VALUE) | 1794 if (h == INVALID_HANDLE_VALUE) |