diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-06-24 12:28:27 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-06-27 11:14:21 -0500 |
commit | eb53852d7ae6838e54525eb57df1d8ce8a722f9b (patch) | |
tree | 7fa05bd6df1bce2e20d87c5fbacc1c658dc000aa /src/burn/engine/cache.cpp | |
parent | 6ee12a64cb75097a238e60d4fd0ea542e8312214 (diff) | |
download | wix-eb53852d7ae6838e54525eb57df1d8ce8a722f9b.tar.gz wix-eb53852d7ae6838e54525eb57df1d8ce8a722f9b.tar.bz2 wix-eb53852d7ae6838e54525eb57df1d8ce8a722f9b.zip |
Add longPathAware to Burn manifest to support long paths.
Fixes 3455
Diffstat (limited to 'src/burn/engine/cache.cpp')
-rw-r--r-- | src/burn/engine/cache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/burn/engine/cache.cpp b/src/burn/engine/cache.cpp index cf9de1c3..eb5cc508 100644 --- a/src/burn/engine/cache.cpp +++ b/src/burn/engine/cache.cpp | |||
@@ -174,7 +174,7 @@ extern "C" HRESULT CacheInitialize( | |||
174 | 174 | ||
175 | // Cache paths are initialized once so they cannot be changed while the engine is caching payloads. | 175 | // Cache paths are initialized once so they cannot be changed while the engine is caching payloads. |
176 | // Always construct the default machine package cache path so we can determine if we're redirected. | 176 | // Always construct the default machine package cache path so we can determine if we're redirected. |
177 | hr = PathGetKnownFolder(CSIDL_COMMON_APPDATA, &sczAppData); | 177 | hr = ShelGetFolder(&sczAppData, CSIDL_COMMON_APPDATA); |
178 | ExitOnFailure(hr, "Failed to find local %hs appdata directory.", "per-machine"); | 178 | ExitOnFailure(hr, "Failed to find local %hs appdata directory.", "per-machine"); |
179 | 179 | ||
180 | hr = PathConcat(sczAppData, PACKAGE_CACHE_FOLDER_NAME, &pCache->sczDefaultMachinePackageCache); | 180 | hr = PathConcat(sczAppData, PACKAGE_CACHE_FOLDER_NAME, &pCache->sczDefaultMachinePackageCache); |
@@ -210,7 +210,7 @@ extern "C" HRESULT CacheInitialize( | |||
210 | pCache->fCustomMachinePackageCache = !fPathEqual; | 210 | pCache->fCustomMachinePackageCache = !fPathEqual; |
211 | 211 | ||
212 | 212 | ||
213 | hr = PathGetKnownFolder(CSIDL_LOCAL_APPDATA, &sczAppData); | 213 | hr = ShelGetFolder(&sczAppData, CSIDL_LOCAL_APPDATA); |
214 | ExitOnFailure(hr, "Failed to find local %hs appdata directory.", "per-user"); | 214 | ExitOnFailure(hr, "Failed to find local %hs appdata directory.", "per-user"); |
215 | 215 | ||
216 | hr = PathConcat(sczAppData, PACKAGE_CACHE_FOLDER_NAME, &pCache->sczDefaultUserPackageCache); | 216 | hr = PathConcat(sczAppData, PACKAGE_CACHE_FOLDER_NAME, &pCache->sczDefaultUserPackageCache); |
@@ -1469,7 +1469,7 @@ static HRESULT CalculateWorkingFolders( | |||
1469 | HRESULT hr = S_OK; | 1469 | HRESULT hr = S_OK; |
1470 | LPWSTR sczBaseAcquisitionPath = NULL; | 1470 | LPWSTR sczBaseAcquisitionPath = NULL; |
1471 | 1471 | ||
1472 | hr = PathGetTempPath(&sczBaseAcquisitionPath); | 1472 | hr = PathGetTempPath(&sczBaseAcquisitionPath, NULL); |
1473 | ExitOnFailure(hr, "Failed to get temp folder path for acquisition folder base."); | 1473 | ExitOnFailure(hr, "Failed to get temp folder path for acquisition folder base."); |
1474 | 1474 | ||
1475 | hr = PathBackslashTerminate(&sczBaseAcquisitionPath); | 1475 | hr = PathBackslashTerminate(&sczBaseAcquisitionPath); |