mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-14 19:20:10 -06:00
Merge topic 'ctest-libuv-exe-network-path'
113cc4c684 libuv: Allow windows UNC path with forward slashes
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6330
This commit is contained in:
@@ -169,7 +169,10 @@ static WCHAR* search_path_join_test(const WCHAR* dir,
|
||||
size_t cwd_len) {
|
||||
WCHAR *result, *result_pos;
|
||||
DWORD attrs;
|
||||
if (dir_len > 2 && dir[0] == L'\\' && dir[1] == L'\\') {
|
||||
if (
|
||||
(dir_len > 2 && dir[0] == L'\\' && dir[1] == L'\\') ||
|
||||
(dir_len > 2 && dir[0] == L'/' && dir[1] == L'/')
|
||||
) {
|
||||
/* It's a UNC path so ignore cwd */
|
||||
cwd_len = 0;
|
||||
} else if (dir_len >= 1 && (dir[0] == L'/' || dir[0] == L'\\')) {
|
||||
|
||||
Reference in New Issue
Block a user