diff options
Diffstat (limited to 'src/burn/engine/core.cpp')
| -rw-r--r-- | src/burn/engine/core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/burn/engine/core.cpp b/src/burn/engine/core.cpp index ae74fdfd..a85e6f18 100644 --- a/src/burn/engine/core.cpp +++ b/src/burn/engine/core.cpp | |||
| @@ -165,7 +165,7 @@ extern "C" HRESULT CoreInitialize( | |||
| 165 | if (BURN_MODE_NORMAL == pEngineState->internalCommand.mode || BURN_MODE_EMBEDDED == pEngineState->internalCommand.mode) | 165 | if (BURN_MODE_NORMAL == pEngineState->internalCommand.mode || BURN_MODE_EMBEDDED == pEngineState->internalCommand.mode) |
| 166 | { | 166 | { |
| 167 | // Extract all UX payloads to working folder. | 167 | // Extract all UX payloads to working folder. |
| 168 | hr = BootstrapperApplicationEnsureWorkingFolder(&pEngineState->cache, &pEngineState->userExperience.sczTempDirectory); | 168 | hr = BootstrapperApplicationEnsureWorkingFolder(pEngineState->internalCommand.fInitiallyElevated, &pEngineState->cache, &pEngineState->userExperience.sczTempDirectory); |
| 169 | ExitOnFailure(hr, "Failed to get unique temporary folder for bootstrapper application."); | 169 | ExitOnFailure(hr, "Failed to get unique temporary folder for bootstrapper application."); |
| 170 | 170 | ||
| 171 | hr = PayloadExtractUXContainer(&pEngineState->userExperience.payloads, &containerContext, pEngineState->userExperience.sczTempDirectory); | 171 | hr = PayloadExtractUXContainer(&pEngineState->userExperience.payloads, &containerContext, pEngineState->userExperience.sczTempDirectory); |
| @@ -588,7 +588,7 @@ extern "C" HRESULT CoreElevate( | |||
| 588 | // If the elevated companion pipe isn't created yet, let's make that happen. | 588 | // If the elevated companion pipe isn't created yet, let's make that happen. |
| 589 | if (!pEngineState->sczBundleEngineWorkingPath) | 589 | if (!pEngineState->sczBundleEngineWorkingPath) |
| 590 | { | 590 | { |
| 591 | hr = CacheBundleToWorkingDirectory(&pEngineState->cache, pEngineState->registration.sczExecutableName, &pEngineState->section, &pEngineState->sczBundleEngineWorkingPath); | 591 | hr = CacheBundleToWorkingDirectory(pEngineState->internalCommand.fInitiallyElevated, &pEngineState->cache, pEngineState->registration.sczExecutableName, &pEngineState->section, &pEngineState->sczBundleEngineWorkingPath); |
| 592 | ExitOnFailure(hr, "Failed to cache engine to working directory."); | 592 | ExitOnFailure(hr, "Failed to cache engine to working directory."); |
| 593 | } | 593 | } |
| 594 | 594 | ||
| @@ -697,7 +697,7 @@ extern "C" HRESULT CoreApply( | |||
| 697 | // Ensure the engine is cached to the working path. | 697 | // Ensure the engine is cached to the working path. |
| 698 | if (!pEngineState->sczBundleEngineWorkingPath) | 698 | if (!pEngineState->sczBundleEngineWorkingPath) |
| 699 | { | 699 | { |
| 700 | hr = CacheBundleToWorkingDirectory(&pEngineState->cache, pEngineState->registration.sczExecutableName, &pEngineState->section, &pEngineState->sczBundleEngineWorkingPath); | 700 | hr = CacheBundleToWorkingDirectory(pEngineState->internalCommand.fInitiallyElevated, &pEngineState->cache, pEngineState->registration.sczExecutableName, &pEngineState->section, &pEngineState->sczBundleEngineWorkingPath); |
| 701 | ExitOnFailure(hr, "Failed to cache engine to working directory."); | 701 | ExitOnFailure(hr, "Failed to cache engine to working directory."); |
| 702 | } | 702 | } |
| 703 | 703 | ||
