0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3824: no ASAN support for MSVC

Problem:    No ASAN support for MSVC.
Solution:   Add ASAN support and fix a coupld of uncovered problems. (Yegappan
            Lakshmanan, closes #9357)
This commit is contained in:
Yegappan Lakshmanan
2021-12-16 13:06:10 +00:00
committed by Bram Moolenaar
parent 6ecf58b0d7
commit 6df0f2759d
5 changed files with 14 additions and 1 deletions

View File

@@ -389,6 +389,8 @@ mch_isFullName(char_u *fname)
// Another way to check is to use mch_FullName() and see if the result is
// the same as the name or mch_FullName() fails. However, this has quite a
// bit of overhead, so let's not do that.
if (*fname == NUL)
return TRUE;
return ((ASCII_ISALPHA(fname[0]) && fname[1] == ':'
&& (fname[2] == '/' || fname[2] == '\\'))
|| (fname[0] == fname[1] && (fname[0] == '/' || fname[0] == '\\')));