diff options
Diffstat (limited to 'src/engine/apply.cpp')
| -rw-r--r-- | src/engine/apply.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/engine/apply.cpp b/src/engine/apply.cpp index c5d27277..8e5099d9 100644 --- a/src/engine/apply.cpp +++ b/src/engine/apply.cpp | |||
| @@ -291,10 +291,12 @@ extern "C" void ApplyReset( | |||
| 291 | 291 | ||
| 292 | extern "C" HRESULT ApplyLock( | 292 | extern "C" HRESULT ApplyLock( |
| 293 | __in BOOL /*fPerMachine*/, | 293 | __in BOOL /*fPerMachine*/, |
| 294 | __out HANDLE* /*phLock*/ | 294 | __out HANDLE* phLock |
| 295 | ) | 295 | ) |
| 296 | { | 296 | { |
| 297 | HRESULT hr = S_OK; | 297 | HRESULT hr = S_OK; |
| 298 | *phLock = NULL; | ||
| 299 | |||
| 298 | #if 0 // eventually figure out the correct way to support this. In its current form, embedded bundles (including related bundles) are hosed. | 300 | #if 0 // eventually figure out the correct way to support this. In its current form, embedded bundles (including related bundles) are hosed. |
| 299 | DWORD er = ERROR_SUCCESS; | 301 | DWORD er = ERROR_SUCCESS; |
| 300 | HANDLE hLock = NULL; | 302 | HANDLE hLock = NULL; |
| @@ -459,6 +461,8 @@ extern "C" HRESULT ApplyCache( | |||
| 459 | DWORD iPackageStartAction = BURN_PLAN_INVALID_ACTION_INDEX; | 461 | DWORD iPackageStartAction = BURN_PLAN_INVALID_ACTION_INDEX; |
| 460 | DWORD iPackageCompleteAction = BURN_PLAN_INVALID_ACTION_INDEX; | 462 | DWORD iPackageCompleteAction = BURN_PLAN_INVALID_ACTION_INDEX; |
| 461 | 463 | ||
| 464 | *pfRollback = FALSE; | ||
| 465 | |||
| 462 | hr = UserExperienceOnCacheBegin(pUX); | 466 | hr = UserExperienceOnCacheBegin(pUX); |
| 463 | ExitOnRootFailure(hr, "BA aborted cache."); | 467 | ExitOnRootFailure(hr, "BA aborted cache."); |
| 464 | 468 | ||
| @@ -732,7 +736,7 @@ extern "C" HRESULT ApplyExecute( | |||
| 732 | __in BURN_ENGINE_STATE* pEngineState, | 736 | __in BURN_ENGINE_STATE* pEngineState, |
| 733 | __in_opt HANDLE hCacheThread, | 737 | __in_opt HANDLE hCacheThread, |
| 734 | __inout DWORD* pcOverallProgressTicks, | 738 | __inout DWORD* pcOverallProgressTicks, |
| 735 | __out BOOL* pfKeepRegistration, | 739 | __inout BOOL* pfKeepRegistration, |
| 736 | __out BOOL* pfRollback, | 740 | __out BOOL* pfRollback, |
| 737 | __out BOOL* pfSuspend, | 741 | __out BOOL* pfSuspend, |
| 738 | __out BOOTSTRAPPER_APPLY_RESTART* pRestart | 742 | __out BOOTSTRAPPER_APPLY_RESTART* pRestart |
| @@ -749,6 +753,9 @@ extern "C" HRESULT ApplyExecute( | |||
| 749 | context.cExecutePackagesTotal = pEngineState->plan.cExecutePackagesTotal; | 753 | context.cExecutePackagesTotal = pEngineState->plan.cExecutePackagesTotal; |
| 750 | context.pcOverallProgressTicks = pcOverallProgressTicks; | 754 | context.pcOverallProgressTicks = pcOverallProgressTicks; |
| 751 | 755 | ||
| 756 | *pfRollback = FALSE; | ||
| 757 | *pfSuspend = FALSE; | ||
| 758 | |||
| 752 | // Send execute begin to BA. | 759 | // Send execute begin to BA. |
| 753 | hr = UserExperienceOnExecuteBegin(&pEngineState->userExperience, pEngineState->plan.cExecutePackagesTotal); | 760 | hr = UserExperienceOnExecuteBegin(&pEngineState->userExperience, pEngineState->plan.cExecutePackagesTotal); |
| 754 | ExitOnRootFailure(hr, "BA aborted execute begin."); | 761 | ExitOnRootFailure(hr, "BA aborted execute begin."); |
