aboutsummaryrefslogtreecommitdiff
path: root/src/engine/EngineForApplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/EngineForApplication.cpp')
-rw-r--r--src/engine/EngineForApplication.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/engine/EngineForApplication.cpp b/src/engine/EngineForApplication.cpp
index d034c2bf..49ffe700 100644
--- a/src/engine/EngineForApplication.cpp
+++ b/src/engine/EngineForApplication.cpp
@@ -616,6 +616,22 @@ static HRESULT BAEngineCloseSplashScreen(
616 return S_OK; 616 return S_OK;
617} 617}
618 618
619static HRESULT BAEngineCompareVersions(
620 __in BOOTSTRAPPER_ENGINE_CONTEXT* /*pContext*/,
621 __in const BAENGINE_COMPAREVERSIONS_ARGS* pArgs,
622 __in BAENGINE_COMPAREVERSIONS_RESULTS* pResults
623 )
624{
625 HRESULT hr = S_OK;
626 LPCWSTR wzVersion1 = pArgs->wzVersion1;
627 LPCWSTR wzVersion2 = pArgs->wzVersion2;
628 int* pnResult = &pResults->nResult;
629
630 hr = VerCompareStringVersions(wzVersion1, wzVersion2, FALSE, pnResult);
631
632 return hr;
633}
634
619static HRESULT BAEngineDetect( 635static HRESULT BAEngineDetect(
620 __in BOOTSTRAPPER_ENGINE_CONTEXT* pContext, 636 __in BOOTSTRAPPER_ENGINE_CONTEXT* pContext,
621 __in BAENGINE_DETECT_ARGS* pArgs, 637 __in BAENGINE_DETECT_ARGS* pArgs,
@@ -861,6 +877,9 @@ HRESULT WINAPI EngineForApplicationProc(
861 case BOOTSTRAPPER_ENGINE_MESSAGE_LAUNCHAPPROVEDEXE: 877 case BOOTSTRAPPER_ENGINE_MESSAGE_LAUNCHAPPROVEDEXE:
862 hr = BAEngineLaunchApprovedExe(pContext, reinterpret_cast<BAENGINE_LAUNCHAPPROVEDEXE_ARGS*>(pvArgs), reinterpret_cast<BAENGINE_LAUNCHAPPROVEDEXE_RESULTS*>(pvResults)); 878 hr = BAEngineLaunchApprovedExe(pContext, reinterpret_cast<BAENGINE_LAUNCHAPPROVEDEXE_ARGS*>(pvArgs), reinterpret_cast<BAENGINE_LAUNCHAPPROVEDEXE_RESULTS*>(pvResults));
863 break; 879 break;
880 case BOOTSTRAPPER_ENGINE_MESSAGE_COMPAREVERSIONS:
881 hr = BAEngineCompareVersions(pContext, reinterpret_cast<BAENGINE_COMPAREVERSIONS_ARGS*>(pvArgs), reinterpret_cast<BAENGINE_COMPAREVERSIONS_RESULTS*>(pvResults));
882 break;
864 default: 883 default:
865 hr = E_NOTIMPL; 884 hr = E_NOTIMPL;
866 break; 885 break;