diff options
| author | Rob Mensching <rob@firegiant.com> | 2025-02-11 05:21:34 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2025-02-11 15:49:33 -0800 |
| commit | f2e9af96142439ebfdbc1e884335bb8874f8a427 (patch) | |
| tree | f3ffd15660a7041d1f70d793e2b2200ccbe42af5 /src/burn/engine/container.cpp | |
| parent | 81fb512834c65b0a8f99c3a266879c476e382875 (diff) | |
| download | wix-f2e9af96142439ebfdbc1e884335bb8874f8a427.tar.gz wix-f2e9af96142439ebfdbc1e884335bb8874f8a427.tar.bz2 wix-f2e9af96142439ebfdbc1e884335bb8874f8a427.zip | |
Harden Burn's BootstrapperApplication and elevated engine extraction
Fixes 8914
Diffstat (limited to '')
| -rw-r--r-- | src/burn/engine/container.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/burn/engine/container.cpp b/src/burn/engine/container.cpp index e6b91532..fad010cf 100644 --- a/src/burn/engine/container.cpp +++ b/src/burn/engine/container.cpp | |||
| @@ -326,6 +326,24 @@ extern "C" HRESULT ContainerStreamToBuffer( | |||
| 326 | return hr; | 326 | return hr; |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | extern "C" HRESULT ContainerStreamToHandle( | ||
| 330 | __in BURN_CONTAINER_CONTEXT* pContext, | ||
| 331 | __in HANDLE hFile | ||
| 332 | ) | ||
| 333 | { | ||
| 334 | HRESULT hr = S_OK; | ||
| 335 | |||
| 336 | switch (pContext->type) | ||
| 337 | { | ||
| 338 | case BURN_CONTAINER_TYPE_CABINET: | ||
| 339 | hr = CabExtractStreamToHandle(pContext, hFile); | ||
| 340 | break; | ||
| 341 | } | ||
| 342 | |||
| 343 | //LExit: | ||
| 344 | return hr; | ||
| 345 | } | ||
| 346 | |||
| 329 | extern "C" HRESULT ContainerSkipStream( | 347 | extern "C" HRESULT ContainerSkipStream( |
| 330 | __in BURN_CONTAINER_CONTEXT* pContext | 348 | __in BURN_CONTAINER_CONTEXT* pContext |
| 331 | ) | 349 | ) |
