diff options
Diffstat (limited to '')
| -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); |
