From fb4f8c7108f43d2341ba299424646c4963b21188 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 26 May 2022 17:33:15 -0500 Subject: Replace PathIsAbsolute with PathIsRooted and add PathIsFullyQualified. --- src/burn/engine/cache.cpp | 2 +- src/burn/engine/logging.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/burn') diff --git a/src/burn/engine/cache.cpp b/src/burn/engine/cache.cpp index 5d81e1ba..2b7d6ede 100644 --- a/src/burn/engine/cache.cpp +++ b/src/burn/engine/cache.cpp @@ -563,7 +563,7 @@ extern "C" HRESULT CacheGetLocalSourcePaths( fPreferSourcePathLocation = !pCache->fRunningFromCache || FAILED(hr); fTryLastFolder = SUCCEEDED(hr) && sczLastSourceFolder && *sczLastSourceFolder && CSTR_EQUAL != ::CompareStringW(LOCALE_NEUTRAL, NORM_IGNORECASE, pCache->sczSourceProcessFolder, -1, sczLastSourceFolder, -1); fTryRelativePath = CSTR_EQUAL != ::CompareStringW(LOCALE_NEUTRAL, NORM_IGNORECASE, wzSourcePath, -1, wzRelativePath, -1); - fSourceIsAbsolute = PathIsAbsolute(wzSourcePath); + fSourceIsAbsolute = PathIsRooted(wzSourcePath); // If the source path provided is a full path, try that first. if (fSourceIsAbsolute) diff --git a/src/burn/engine/logging.cpp b/src/burn/engine/logging.cpp index 1b2bec1f..8e89957b 100644 --- a/src/burn/engine/logging.cpp +++ b/src/burn/engine/logging.cpp @@ -140,7 +140,7 @@ extern "C" HRESULT LoggingOpen( LPCWSTR wzPrefix = sczPrefixFormatted; // Best effort to open default logging. - if (PathIsAbsolute(sczPrefixFormatted)) + if (PathIsRooted(sczPrefixFormatted)) { hr = PathGetDirectory(sczPrefixFormatted, &sczLoggingBaseFolder); ExitOnFailure(hr, "Failed to get parent directory from '%ls'.", sczPrefixFormatted); -- cgit v1.2.3-55-g6feb