diff options
author | K.Takata <kentkt@csc.jp> | 2022-09-18 12:25:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-18 12:25:49 +0100 |
commit | 27b53be3a6a340f1858bcd31233fe2efc86f8e15 (patch) | |
tree | 3e2c968241cdcfda2d4c616e66bf718f01e7349b /src/os_mswin.c | |
parent | dbbb02bc770646776a04122ff58313d170873e67 (diff) | |
download | vim-git-27b53be3a6a340f1858bcd31233fe2efc86f8e15.tar.gz |
patch 9.0.0496: no good reason to keep supporting Windows-XPv9.0.0496
Problem: No good reason to keep supporting Windows-XP.
Solution: Drop Windows-XP support. (Ken Takata, closes #11089)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index f06583cc9..b2d66cea2 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -1744,13 +1744,6 @@ mch_print_set_fg(long_u fgcol) # include <shlobj.h> # endif -typedef BOOL (WINAPI *pfnGetFinalPathNameByHandleW)( - HANDLE hFile, - LPWSTR lpszFilePath, - DWORD cchFilePath, - DWORD dwFlags); -static pfnGetFinalPathNameByHandleW pGetFinalPathNameByHandleW = NULL; - # define is_path_sep(c) ((c) == L'\\' || (c) == L'/') static int @@ -1792,20 +1785,6 @@ resolve_reparse_point(char_u *fname) WCHAR *p, *wp; char_u *rfname = NULL; WCHAR *buff = NULL; - static BOOL loaded = FALSE; - - if (pGetFinalPathNameByHandleW == NULL) - { - HMODULE hmod = GetModuleHandle("kernel32.dll"); - - if (loaded == TRUE) - return NULL; - pGetFinalPathNameByHandleW = (pfnGetFinalPathNameByHandleW) - GetProcAddress(hmod, "GetFinalPathNameByHandleW"); - loaded = TRUE; - if (pGetFinalPathNameByHandleW == NULL) - return NULL; - } p = enc_to_utf16(fname, NULL); if (p == NULL) @@ -1824,13 +1803,13 @@ resolve_reparse_point(char_u *fname) if (h == INVALID_HANDLE_VALUE) goto fail; - size = pGetFinalPathNameByHandleW(h, NULL, 0, 0); + size = GetFinalPathNameByHandleW(h, NULL, 0, 0); if (size == 0) goto fail; buff = ALLOC_MULT(WCHAR, size); if (buff == NULL) goto fail; - if (pGetFinalPathNameByHandleW(h, buff, size, 0) == 0) + if (GetFinalPathNameByHandleW(h, buff, size, 0) == 0) goto fail; if (wcsncmp(buff, L"\\\\?\\UNC\\", 8) == 0) |