diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-03-14 15:20:28 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-03-14 16:44:10 -0500 |
commit | 8ed8ca0721e08ea953f4751086c4845c98551c46 (patch) | |
tree | e8a0adf76e26d24fd4932bd9427e6f094b63ef09 /src/burn/engine/apply.cpp | |
parent | 98d5054caaf3439baeed13c3574a368e45a9a086 (diff) | |
download | wix-8ed8ca0721e08ea953f4751086c4845c98551c46.tar.gz wix-8ed8ca0721e08ea953f4751086c4845c98551c46.tar.bz2 wix-8ed8ca0721e08ea953f4751086c4845c98551c46.zip |
Don't close handles from MsiBeginTransaction.
Assume that MsiEndTransaction must be called exactly once for each MsiBeginTransaction.
Fixes 6695
Diffstat (limited to 'src/burn/engine/apply.cpp')
-rw-r--r-- | src/burn/engine/apply.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/burn/engine/apply.cpp b/src/burn/engine/apply.cpp index 4e652768..3ad22e9b 100644 --- a/src/burn/engine/apply.cpp +++ b/src/burn/engine/apply.cpp | |||
@@ -3123,12 +3123,10 @@ static HRESULT ExecuteMsiCommitTransaction( | |||
3123 | hr = MsiEngineCommitTransaction(pRollbackBoundary); | 3123 | hr = MsiEngineCommitTransaction(pRollbackBoundary); |
3124 | } | 3124 | } |
3125 | 3125 | ||
3126 | if (SUCCEEDED(hr)) | 3126 | // Assume that MsiEndTransaction can only be called once for each MsiBeginTransaction. |
3127 | { | 3127 | pRollbackBoundary->fActiveTransaction = FALSE; |
3128 | pRollbackBoundary->fActiveTransaction = FALSE; | ||
3129 | 3128 | ||
3130 | ResetTransactionRegistrationState(pEngineState, TRUE); | 3129 | ResetTransactionRegistrationState(pEngineState, TRUE); |
3131 | } | ||
3132 | 3130 | ||
3133 | LExit: | 3131 | LExit: |
3134 | if (fCommitBeginCalled) | 3132 | if (fCommitBeginCalled) |