diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-08-03 15:41:18 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-08-04 10:03:57 -0500 |
| commit | 6d7a275edafb3ae0f3cff94d66503a82dafb71f7 (patch) | |
| tree | fae8f75e2cd1d7b179b0ed93e15625d68ba7c441 /src/burn/engine/plan.cpp | |
| parent | ed57d171f6fb6bb4e180696cc12caa568599566a (diff) | |
| download | wix-6d7a275edafb3ae0f3cff94d66503a82dafb71f7.tar.gz wix-6d7a275edafb3ae0f3cff94d66503a82dafb71f7.tar.bz2 wix-6d7a275edafb3ae0f3cff94d66503a82dafb71f7.zip | |
Replace static cache internals with a struct.
Initialize them explicitly to make it clearer when that happens.
Diffstat (limited to 'src/burn/engine/plan.cpp')
| -rw-r--r-- | src/burn/engine/plan.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/burn/engine/plan.cpp b/src/burn/engine/plan.cpp index 3d6fc65f..79b7c98f 100644 --- a/src/burn/engine/plan.cpp +++ b/src/burn/engine/plan.cpp | |||
| @@ -409,7 +409,7 @@ extern "C" HRESULT PlanLayoutBundle( | |||
| 409 | hr = StrAllocString(&pCacheAction->bundleLayout.sczExecutableName, wzExecutableName, 0); | 409 | hr = StrAllocString(&pCacheAction->bundleLayout.sczExecutableName, wzExecutableName, 0); |
| 410 | ExitOnFailure(hr, "Failed to to copy executable name for bundle."); | 410 | ExitOnFailure(hr, "Failed to to copy executable name for bundle."); |
| 411 | 411 | ||
| 412 | hr = CacheCalculateBundleLayoutWorkingPath(pPlan->wzBundleId, &pCacheAction->bundleLayout.sczUnverifiedPath); | 412 | hr = CacheCalculateBundleLayoutWorkingPath(pPlan->pCache, pPlan->wzBundleId, &pCacheAction->bundleLayout.sczUnverifiedPath); |
| 413 | ExitOnFailure(hr, "Failed to calculate bundle layout working path."); | 413 | ExitOnFailure(hr, "Failed to calculate bundle layout working path."); |
| 414 | 414 | ||
| 415 | pCacheAction->bundleLayout.qwBundleSize = qwBundleSize; | 415 | pCacheAction->bundleLayout.qwBundleSize = qwBundleSize; |
| @@ -526,7 +526,7 @@ extern "C" HRESULT PlanRegistration( | |||
| 526 | pPlan->fIgnoreAllDependents = pRegistration->fIgnoreAllDependents; | 526 | pPlan->fIgnoreAllDependents = pRegistration->fIgnoreAllDependents; |
| 527 | 527 | ||
| 528 | // Ensure the bundle is cached if not running from the cache. | 528 | // Ensure the bundle is cached if not running from the cache. |
| 529 | if (!CacheBundleRunningFromCache()) | 529 | if (!CacheBundleRunningFromCache(pPlan->pCache)) |
| 530 | { | 530 | { |
| 531 | pPlan->dwRegistrationOperations |= BURN_REGISTRATION_ACTION_OPERATIONS_CACHE_BUNDLE; | 531 | pPlan->dwRegistrationOperations |= BURN_REGISTRATION_ACTION_OPERATIONS_CACHE_BUNDLE; |
| 532 | } | 532 | } |
| @@ -1021,7 +1021,7 @@ extern "C" HRESULT PlanLayoutContainer( | |||
| 1021 | } | 1021 | } |
| 1022 | else | 1022 | else |
| 1023 | { | 1023 | { |
| 1024 | hr = CacheCalculateContainerWorkingPath(pPlan->wzBundleId, pContainer, &pContainer->sczUnverifiedPath); | 1024 | hr = CacheCalculateContainerWorkingPath(pPlan->pCache, pContainer, &pContainer->sczUnverifiedPath); |
| 1025 | ExitOnFailure(hr, "Failed to calculate unverified path for container."); | 1025 | ExitOnFailure(hr, "Failed to calculate unverified path for container."); |
| 1026 | } | 1026 | } |
| 1027 | } | 1027 | } |
| @@ -2235,7 +2235,7 @@ static HRESULT ProcessPayloadGroup( | |||
| 2235 | 2235 | ||
| 2236 | if (!pPayload->sczUnverifiedPath) | 2236 | if (!pPayload->sczUnverifiedPath) |
| 2237 | { | 2237 | { |
| 2238 | hr = CacheCalculatePayloadWorkingPath(pPlan->wzBundleId, pPayload, &pPayload->sczUnverifiedPath); | 2238 | hr = CacheCalculatePayloadWorkingPath(pPlan->pCache, pPayload, &pPayload->sczUnverifiedPath); |
| 2239 | ExitOnFailure(hr, "Failed to calculate unverified path for payload."); | 2239 | ExitOnFailure(hr, "Failed to calculate unverified path for payload."); |
| 2240 | } | 2240 | } |
| 2241 | } | 2241 | } |
