Mercurial > vim
comparison src/os_mswin.c @ 26589:22896e358a90 v8.2.3824
patch 8.2.3824: no ASAN support for MSVC
Commit: https://github.com/vim/vim/commit/6df0f2759d12ec0bc999b2963ecea4387a2bc516
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Dec 16 13:06:10 2021 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Dec 2021 14:15:02 +0100 |
parents | a2e6da79274d |
children | fc859aea8cec |
comparison
equal
deleted
inserted
replaced
26588:c929ca14d8a9 | 26589:22896e358a90 |
---|---|
387 { | 387 { |
388 // A name like "d:/foo" and "//server/share" is absolute. "d:foo" is not. | 388 // A name like "d:/foo" and "//server/share" is absolute. "d:foo" is not. |
389 // Another way to check is to use mch_FullName() and see if the result is | 389 // Another way to check is to use mch_FullName() and see if the result is |
390 // the same as the name or mch_FullName() fails. However, this has quite a | 390 // the same as the name or mch_FullName() fails. However, this has quite a |
391 // bit of overhead, so let's not do that. | 391 // bit of overhead, so let's not do that. |
392 if (*fname == NUL) | |
393 return TRUE; | |
392 return ((ASCII_ISALPHA(fname[0]) && fname[1] == ':' | 394 return ((ASCII_ISALPHA(fname[0]) && fname[1] == ':' |
393 && (fname[2] == '/' || fname[2] == '\\')) | 395 && (fname[2] == '/' || fname[2] == '\\')) |
394 || (fname[0] == fname[1] && (fname[0] == '/' || fname[0] == '\\'))); | 396 || (fname[0] == fname[1] && (fname[0] == '/' || fname[0] == '\\'))); |
395 } | 397 } |
396 | 398 |