diff options
Diffstat (limited to 'src/engine/EngineForApplication.cpp')
-rw-r--r-- | src/engine/EngineForApplication.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/engine/EngineForApplication.cpp b/src/engine/EngineForApplication.cpp index 361e0f4e..83d88ba1 100644 --- a/src/engine/EngineForApplication.cpp +++ b/src/engine/EngineForApplication.cpp | |||
@@ -411,6 +411,22 @@ LExit: | |||
411 | return hr; | 411 | return hr; |
412 | } | 412 | } |
413 | 413 | ||
414 | static HRESULT BAEngineSetUpdateSource( | ||
415 | __in BOOTSTRAPPER_ENGINE_CONTEXT* pContext, | ||
416 | __in const LPVOID pvArgs, | ||
417 | __inout LPVOID pvResults | ||
418 | ) | ||
419 | { | ||
420 | HRESULT hr = S_OK; | ||
421 | ValidateMessageArgs(hr, pvArgs, BAENGINE_SETUPDATESOURCE_ARGS, pArgs); | ||
422 | ValidateMessageResults(hr, pvResults, BAENGINE_SETUPDATESOURCE_RESULTS, pResults); | ||
423 | |||
424 | hr = ExternalEngineSetUpdateSource(pContext->pEngineState, pArgs->wzUrl); | ||
425 | |||
426 | LExit: | ||
427 | return hr; | ||
428 | } | ||
429 | |||
414 | HRESULT WINAPI EngineForApplicationProc( | 430 | HRESULT WINAPI EngineForApplicationProc( |
415 | __in BOOTSTRAPPER_ENGINE_MESSAGE message, | 431 | __in BOOTSTRAPPER_ENGINE_MESSAGE message, |
416 | __in const LPVOID pvArgs, | 432 | __in const LPVOID pvArgs, |
@@ -497,6 +513,9 @@ HRESULT WINAPI EngineForApplicationProc( | |||
497 | case BOOTSTRAPPER_ENGINE_MESSAGE_LAUNCHAPPROVEDEXE: | 513 | case BOOTSTRAPPER_ENGINE_MESSAGE_LAUNCHAPPROVEDEXE: |
498 | hr = BAEngineLaunchApprovedExe(pContext, pvArgs, pvResults); | 514 | hr = BAEngineLaunchApprovedExe(pContext, pvArgs, pvResults); |
499 | break; | 515 | break; |
516 | case BOOTSTRAPPER_ENGINE_MESSAGE_SETUPDATESOURCE: | ||
517 | hr = BAEngineSetUpdateSource(pContext, pvArgs, pvResults); | ||
518 | break; | ||
500 | case BOOTSTRAPPER_ENGINE_MESSAGE_COMPAREVERSIONS: | 519 | case BOOTSTRAPPER_ENGINE_MESSAGE_COMPAREVERSIONS: |
501 | hr = BAEngineCompareVersions(pContext, pvArgs, pvResults); | 520 | hr = BAEngineCompareVersions(pContext, pvArgs, pvResults); |
502 | break; | 521 | break; |