aboutsummaryrefslogtreecommitdiff
path: root/src/engine/apply.cpp
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2020-12-26 22:15:06 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-01-19 15:50:11 -0600
commita5b86b987bb5a6fbcdb191bbe8b51a621140b4e6 (patch)
treeecbeb7a3bf969990f3f96f9cba56bd68ab5d95af /src/engine/apply.cpp
parent059e476a8d9af2472503057d7102852e64e9ca0b (diff)
downloadwix-a5b86b987bb5a6fbcdb191bbe8b51a621140b4e6.tar.gz
wix-a5b86b987bb5a6fbcdb191bbe8b51a621140b4e6.tar.bz2
wix-a5b86b987bb5a6fbcdb191bbe8b51a621140b4e6.zip
Fix code analysis warnings.
Diffstat (limited to 'src/engine/apply.cpp')
-rw-r--r--src/engine/apply.cpp11
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
292extern "C" HRESULT ApplyLock( 292extern "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.");