diff options
author | Jacob Hoover <jacob.hoover@greenheck.com> | 2022-11-10 10:48:23 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-11-10 23:49:10 -0600 |
commit | fa393914f12f6d6bc88a73e4d5b009da765f6dd5 (patch) | |
tree | 6dbf354d4542b3e085795b0a917eaafc1eead415 /src/burn/engine/externalengine.cpp | |
parent | c843b47d6233153fa961c6d0e61edf7cedf255bb (diff) | |
download | wix-fa393914f12f6d6bc88a73e4d5b009da765f6dd5.tar.gz wix-fa393914f12f6d6bc88a73e4d5b009da765f6dd5.tar.bz2 wix-fa393914f12f6d6bc88a73e4d5b009da765f6dd5.zip |
WIXFEAT-3704 - Allow access to persisted variables from related bundles
Diffstat (limited to 'src/burn/engine/externalengine.cpp')
-rw-r--r-- | src/burn/engine/externalengine.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/burn/engine/externalengine.cpp b/src/burn/engine/externalengine.cpp index 262bb1a9..c38d8fc3 100644 --- a/src/burn/engine/externalengine.cpp +++ b/src/burn/engine/externalengine.cpp | |||
@@ -801,6 +801,26 @@ LExit: | |||
801 | return hr; | 801 | return hr; |
802 | } | 802 | } |
803 | 803 | ||
804 | HRESULT ExternalEngineGetRelatedBundleVariable( | ||
805 | __in BURN_ENGINE_STATE* /*pEngineState*/, | ||
806 | __in_z LPCWSTR wzBundleId, | ||
807 | __in_z LPCWSTR wzVariable, | ||
808 | __out_ecount_opt(*pcchValue) LPWSTR wzValue, | ||
809 | __inout SIZE_T* pcchValue | ||
810 | ) | ||
811 | { | ||
812 | HRESULT hr = S_OK; | ||
813 | if (wzVariable && *wzVariable && pcchValue) | ||
814 | { | ||
815 | hr = BundleGetBundleVariableFixed(wzBundleId, wzVariable, wzValue, pcchValue); | ||
816 | } | ||
817 | else | ||
818 | { | ||
819 | hr = E_INVALIDARG; | ||
820 | } | ||
821 | return hr; | ||
822 | } | ||
823 | |||
804 | // TODO: callers need to provide the original size (at the time of first public release) of the struct instead of the current size. | 824 | // TODO: callers need to provide the original size (at the time of first public release) of the struct instead of the current size. |
805 | HRESULT WINAPI ExternalEngineValidateMessageParameter( | 825 | HRESULT WINAPI ExternalEngineValidateMessageParameter( |
806 | __in_opt const LPVOID pv, | 826 | __in_opt const LPVOID pv, |