diff options
Diffstat (limited to 'src/burn/engine/elevation.cpp')
-rw-r--r-- | src/burn/engine/elevation.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/burn/engine/elevation.cpp b/src/burn/engine/elevation.cpp index 0e1cf0b7..ba6b1dd3 100644 --- a/src/burn/engine/elevation.cpp +++ b/src/burn/engine/elevation.cpp | |||
@@ -3246,7 +3246,10 @@ static HRESULT OnMsiBeginTransaction( | |||
3246 | hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); | 3246 | hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); |
3247 | ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); | 3247 | ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); |
3248 | 3248 | ||
3249 | pRollbackBoundary->sczLogPath = sczLogPath; | 3249 | if (sczLogPath && *sczLogPath) |
3250 | { | ||
3251 | pRollbackBoundary->sczLogPath = sczLogPath; | ||
3252 | } | ||
3250 | 3253 | ||
3251 | hr = MsiEngineBeginTransaction(pRollbackBoundary); | 3254 | hr = MsiEngineBeginTransaction(pRollbackBoundary); |
3252 | 3255 | ||
@@ -3284,7 +3287,10 @@ static HRESULT OnMsiCommitTransaction( | |||
3284 | hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); | 3287 | hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); |
3285 | ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); | 3288 | ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); |
3286 | 3289 | ||
3287 | pRollbackBoundary->sczLogPath = sczLogPath; | 3290 | if (sczLogPath && *sczLogPath) |
3291 | { | ||
3292 | pRollbackBoundary->sczLogPath = sczLogPath; | ||
3293 | } | ||
3288 | 3294 | ||
3289 | hr = MsiEngineCommitTransaction(pRollbackBoundary); | 3295 | hr = MsiEngineCommitTransaction(pRollbackBoundary); |
3290 | 3296 | ||
@@ -3322,7 +3328,10 @@ static HRESULT OnMsiRollbackTransaction( | |||
3322 | hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); | 3328 | hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); |
3323 | ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); | 3329 | ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); |
3324 | 3330 | ||
3325 | pRollbackBoundary->sczLogPath = sczLogPath; | 3331 | if (sczLogPath && *sczLogPath) |
3332 | { | ||
3333 | pRollbackBoundary->sczLogPath = sczLogPath; | ||
3334 | } | ||
3326 | 3335 | ||
3327 | hr = MsiEngineRollbackTransaction(pRollbackBoundary); | 3336 | hr = MsiEngineRollbackTransaction(pRollbackBoundary); |
3328 | 3337 | ||