diff options
-rw-r--r-- | src/engine/apply.cpp | 11 | ||||
-rw-r--r-- | src/engine/apply.h | 2 | ||||
-rw-r--r-- | src/engine/cabextract.cpp | 2 | ||||
-rw-r--r-- | src/engine/core.cpp | 2 | ||||
-rw-r--r-- | src/engine/elevation.cpp | 4 |
5 files changed, 14 insertions, 7 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."); |
diff --git a/src/engine/apply.h b/src/engine/apply.h index b717251e..00e1fceb 100644 --- a/src/engine/apply.h +++ b/src/engine/apply.h | |||
@@ -89,7 +89,7 @@ HRESULT ApplyExecute( | |||
89 | __in BURN_ENGINE_STATE* pEngineState, | 89 | __in BURN_ENGINE_STATE* pEngineState, |
90 | __in_opt HANDLE hCacheThread, | 90 | __in_opt HANDLE hCacheThread, |
91 | __inout DWORD* pcOverallProgressTicks, | 91 | __inout DWORD* pcOverallProgressTicks, |
92 | __out BOOL* pfKeepRegistration, | 92 | __inout BOOL* pfKeepRegistration, |
93 | __out BOOL* pfRollback, | 93 | __out BOOL* pfRollback, |
94 | __out BOOL* pfSuspend, | 94 | __out BOOL* pfSuspend, |
95 | __out BOOTSTRAPPER_APPLY_RESTART* pRestart | 95 | __out BOOTSTRAPPER_APPLY_RESTART* pRestart |
diff --git a/src/engine/cabextract.cpp b/src/engine/cabextract.cpp index 04c2c6ec..5a02ff8a 100644 --- a/src/engine/cabextract.cpp +++ b/src/engine/cabextract.cpp | |||
@@ -543,7 +543,7 @@ static INT_PTR CopyFileCallback( | |||
543 | 543 | ||
544 | // copy stream name | 544 | // copy stream name |
545 | hr = StrAllocStringAnsi(pContext->Cabinet.psczStreamName, pFDINotify->psz1, 0, CP_UTF8); | 545 | hr = StrAllocStringAnsi(pContext->Cabinet.psczStreamName, pFDINotify->psz1, 0, CP_UTF8); |
546 | ExitOnFailure(hr, "Failed to copy stream name: %ls", pFDINotify->psz1); | 546 | ExitOnFailure(hr, "Failed to copy stream name: %hs", pFDINotify->psz1); |
547 | 547 | ||
548 | // set operation complete event | 548 | // set operation complete event |
549 | if (!::SetEvent(pContext->Cabinet.hOperationCompleteEvent)) | 549 | if (!::SetEvent(pContext->Cabinet.hOperationCompleteEvent)) |
diff --git a/src/engine/core.cpp b/src/engine/core.cpp index 028dc1cc..d157d3b3 100644 --- a/src/engine/core.cpp +++ b/src/engine/core.cpp | |||
@@ -36,7 +36,7 @@ static HRESULT ParseCommandLine( | |||
36 | __out_z LPWSTR* psczSanitizedCommandLine | 36 | __out_z LPWSTR* psczSanitizedCommandLine |
37 | ); | 37 | ); |
38 | static HRESULT ParsePipeConnection( | 38 | static HRESULT ParsePipeConnection( |
39 | __in LPWSTR* rgArgs, | 39 | __in_ecount(3) LPWSTR* rgArgs, |
40 | __in BURN_PIPE_CONNECTION* pConnection | 40 | __in BURN_PIPE_CONNECTION* pConnection |
41 | ); | 41 | ); |
42 | static HRESULT DetectPackage( | 42 | static HRESULT DetectPackage( |
diff --git a/src/engine/elevation.cpp b/src/engine/elevation.cpp index 94418dc3..fc53b1f8 100644 --- a/src/engine/elevation.cpp +++ b/src/engine/elevation.cpp | |||
@@ -107,7 +107,7 @@ static HRESULT ProcessApplyInitializeMessages( | |||
107 | ); | 107 | ); |
108 | static HRESULT ProcessGenericExecuteMessages( | 108 | static HRESULT ProcessGenericExecuteMessages( |
109 | __in BURN_PIPE_MESSAGE* pMsg, | 109 | __in BURN_PIPE_MESSAGE* pMsg, |
110 | __in_opt LPVOID pvContext, | 110 | __in LPVOID pvContext, |
111 | __out DWORD* pdwResult | 111 | __out DWORD* pdwResult |
112 | ); | 112 | ); |
113 | static HRESULT ProcessMsiPackageMessages( | 113 | static HRESULT ProcessMsiPackageMessages( |
@@ -1425,7 +1425,7 @@ LExit: | |||
1425 | 1425 | ||
1426 | static HRESULT ProcessGenericExecuteMessages( | 1426 | static HRESULT ProcessGenericExecuteMessages( |
1427 | __in BURN_PIPE_MESSAGE* pMsg, | 1427 | __in BURN_PIPE_MESSAGE* pMsg, |
1428 | __in_opt LPVOID pvContext, | 1428 | __in LPVOID pvContext, |
1429 | __out DWORD* pdwResult | 1429 | __out DWORD* pdwResult |
1430 | ) | 1430 | ) |
1431 | { | 1431 | { |