diff options
author | Rob Mensching <rob@firegiant.com> | 2024-12-29 18:01:20 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2024-12-30 06:45:49 -0800 |
commit | 523c66a62a619e6aa9f30070173ea33edfb5e328 (patch) | |
tree | 04fa3146250b7eeaa6864b0f71e37905a2d77be1 /src/api/burn/balutil/msg.cpp | |
parent | 6edc5d1e2a289eac50c6d59a29e195353bb023cb (diff) | |
download | wix-523c66a62a619e6aa9f30070173ea33edfb5e328.tar.gz wix-523c66a62a619e6aa9f30070173ea33edfb5e328.tar.bz2 wix-523c66a62a619e6aa9f30070173ea33edfb5e328.zip |
Rename "bundle id" concept to "bundle code"
The "bundle id" always had more in common with the PackageCode from the Windows
Installer. With the introduction of an actual Id attribute on the Bundle
element, there is potential for confusion, so there is finally real motivation
to rename "bundle id" to "bundle code".
Diffstat (limited to 'src/api/burn/balutil/msg.cpp')
-rw-r--r-- | src/api/burn/balutil/msg.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/src/api/burn/balutil/msg.cpp b/src/api/burn/balutil/msg.cpp index 690108a5..b728cc83 100644 --- a/src/api/burn/balutil/msg.cpp +++ b/src/api/burn/balutil/msg.cpp | |||
@@ -1768,7 +1768,7 @@ static HRESULT OnDetectForwardCompatibleBundle( | |||
1768 | HRESULT hr = S_OK; | 1768 | HRESULT hr = S_OK; |
1769 | BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS args = { }; | 1769 | BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS args = { }; |
1770 | BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_RESULTS results = { }; | 1770 | BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_RESULTS results = { }; |
1771 | LPWSTR sczBundleId = NULL; | 1771 | LPWSTR sczBundleCode = NULL; |
1772 | LPWSTR sczBundleTag = NULL; | 1772 | LPWSTR sczBundleTag = NULL; |
1773 | LPWSTR sczVersion = NULL; | 1773 | LPWSTR sczVersion = NULL; |
1774 | 1774 | ||
@@ -1776,10 +1776,10 @@ static HRESULT OnDetectForwardCompatibleBundle( | |||
1776 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); | 1776 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); |
1777 | ExitOnFailure(hr, "Failed to read API version of OnDetectForwardCompatibleBundle args."); | 1777 | ExitOnFailure(hr, "Failed to read API version of OnDetectForwardCompatibleBundle args."); |
1778 | 1778 | ||
1779 | hr = BuffReaderReadString(pReaderArgs, &sczBundleId); | 1779 | hr = BuffReaderReadString(pReaderArgs, &sczBundleCode); |
1780 | ExitOnFailure(hr, "Failed to read bundle id of OnDetectForwardCompatibleBundle args."); | 1780 | ExitOnFailure(hr, "Failed to read bundle code of OnDetectForwardCompatibleBundle args."); |
1781 | 1781 | ||
1782 | args.wzBundleId = sczBundleId; | 1782 | args.wzBundleCode = sczBundleCode; |
1783 | 1783 | ||
1784 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); | 1784 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); |
1785 | ExitOnFailure(hr, "Failed to read relation type of OnDetectForwardCompatibleBundle args."); | 1785 | ExitOnFailure(hr, "Failed to read relation type of OnDetectForwardCompatibleBundle args."); |
@@ -1809,7 +1809,7 @@ static HRESULT OnDetectForwardCompatibleBundle( | |||
1809 | 1809 | ||
1810 | if (E_NOTIMPL == hr) | 1810 | if (E_NOTIMPL == hr) |
1811 | { | 1811 | { |
1812 | hr = pApplication->OnDetectForwardCompatibleBundle(args.wzBundleId, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fMissingFromCache, &results.fCancel); | 1812 | hr = pApplication->OnDetectForwardCompatibleBundle(args.wzBundleCode, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fMissingFromCache, &results.fCancel); |
1813 | } | 1813 | } |
1814 | 1814 | ||
1815 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE, &args, &results, &hr); | 1815 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE, &args, &results, &hr); |
@@ -1825,7 +1825,7 @@ static HRESULT OnDetectForwardCompatibleBundle( | |||
1825 | LExit: | 1825 | LExit: |
1826 | ReleaseStr(sczVersion); | 1826 | ReleaseStr(sczVersion); |
1827 | ReleaseStr(sczBundleTag); | 1827 | ReleaseStr(sczBundleTag); |
1828 | ReleaseStr(sczBundleId); | 1828 | ReleaseStr(sczBundleCode); |
1829 | return hr; | 1829 | return hr; |
1830 | } | 1830 | } |
1831 | 1831 | ||
@@ -1999,7 +1999,7 @@ static HRESULT OnDetectRelatedBundle( | |||
1999 | HRESULT hr = S_OK; | 1999 | HRESULT hr = S_OK; |
2000 | BA_ONDETECTRELATEDBUNDLE_ARGS args = { }; | 2000 | BA_ONDETECTRELATEDBUNDLE_ARGS args = { }; |
2001 | BA_ONDETECTRELATEDBUNDLE_RESULTS results = { }; | 2001 | BA_ONDETECTRELATEDBUNDLE_RESULTS results = { }; |
2002 | LPWSTR sczBundleId = NULL; | 2002 | LPWSTR sczBundleCode = NULL; |
2003 | LPWSTR sczBundleTag = NULL; | 2003 | LPWSTR sczBundleTag = NULL; |
2004 | LPWSTR sczVersion = NULL; | 2004 | LPWSTR sczVersion = NULL; |
2005 | 2005 | ||
@@ -2007,10 +2007,10 @@ static HRESULT OnDetectRelatedBundle( | |||
2007 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); | 2007 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); |
2008 | ExitOnFailure(hr, "Failed to read API version of OnDetectRelatedBundle args."); | 2008 | ExitOnFailure(hr, "Failed to read API version of OnDetectRelatedBundle args."); |
2009 | 2009 | ||
2010 | hr = BuffReaderReadString(pReaderArgs, &sczBundleId); | 2010 | hr = BuffReaderReadString(pReaderArgs, &sczBundleCode); |
2011 | ExitOnFailure(hr, "Failed to read bundle id of OnDetectRelatedBundle args."); | 2011 | ExitOnFailure(hr, "Failed to read bundle code of OnDetectRelatedBundle args."); |
2012 | 2012 | ||
2013 | args.wzBundleId = sczBundleId; | 2013 | args.wzBundleCode = sczBundleCode; |
2014 | 2014 | ||
2015 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); | 2015 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); |
2016 | ExitOnFailure(hr, "Failed to read relation type of OnDetectRelatedBundle args."); | 2016 | ExitOnFailure(hr, "Failed to read relation type of OnDetectRelatedBundle args."); |
@@ -2040,7 +2040,7 @@ static HRESULT OnDetectRelatedBundle( | |||
2040 | 2040 | ||
2041 | if (E_NOTIMPL == hr) | 2041 | if (E_NOTIMPL == hr) |
2042 | { | 2042 | { |
2043 | hr = pApplication->OnDetectRelatedBundle(args.wzBundleId, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fMissingFromCache, &results.fCancel); | 2043 | hr = pApplication->OnDetectRelatedBundle(args.wzBundleCode, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fMissingFromCache, &results.fCancel); |
2044 | } | 2044 | } |
2045 | 2045 | ||
2046 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLE, &args, &results, &hr); | 2046 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLE, &args, &results, &hr); |
@@ -2056,7 +2056,7 @@ static HRESULT OnDetectRelatedBundle( | |||
2056 | LExit: | 2056 | LExit: |
2057 | ReleaseStr(sczVersion); | 2057 | ReleaseStr(sczVersion); |
2058 | ReleaseStr(sczBundleTag); | 2058 | ReleaseStr(sczBundleTag); |
2059 | ReleaseStr(sczBundleId); | 2059 | ReleaseStr(sczBundleCode); |
2060 | return hr; | 2060 | return hr; |
2061 | } | 2061 | } |
2062 | 2062 | ||
@@ -2071,7 +2071,7 @@ static HRESULT OnDetectRelatedBundlePackage( | |||
2071 | BA_ONDETECTRELATEDBUNDLEPACKAGE_ARGS args = { }; | 2071 | BA_ONDETECTRELATEDBUNDLEPACKAGE_ARGS args = { }; |
2072 | BA_ONDETECTRELATEDBUNDLEPACKAGE_RESULTS results = { }; | 2072 | BA_ONDETECTRELATEDBUNDLEPACKAGE_RESULTS results = { }; |
2073 | LPWSTR sczPackageId = NULL; | 2073 | LPWSTR sczPackageId = NULL; |
2074 | LPWSTR sczBundleId = NULL; | 2074 | LPWSTR sczBundleCode = NULL; |
2075 | LPWSTR sczVersion = NULL; | 2075 | LPWSTR sczVersion = NULL; |
2076 | 2076 | ||
2077 | // Read args. | 2077 | // Read args. |
@@ -2083,10 +2083,10 @@ static HRESULT OnDetectRelatedBundlePackage( | |||
2083 | 2083 | ||
2084 | args.wzPackageId = sczPackageId; | 2084 | args.wzPackageId = sczPackageId; |
2085 | 2085 | ||
2086 | hr = BuffReaderReadString(pReaderArgs, &sczBundleId); | 2086 | hr = BuffReaderReadString(pReaderArgs, &sczBundleCode); |
2087 | ExitOnFailure(hr, "Failed to read bundle id of OnDetectRelatedBundlePackage args."); | 2087 | ExitOnFailure(hr, "Failed to read bundle code of OnDetectRelatedBundlePackage args."); |
2088 | 2088 | ||
2089 | args.wzBundleId = sczBundleId; | 2089 | args.wzBundleCode = sczBundleCode; |
2090 | 2090 | ||
2091 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); | 2091 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); |
2092 | ExitOnFailure(hr, "Failed to read relation type of OnDetectRelatedBundlePackage args."); | 2092 | ExitOnFailure(hr, "Failed to read relation type of OnDetectRelatedBundlePackage args."); |
@@ -2108,7 +2108,7 @@ static HRESULT OnDetectRelatedBundlePackage( | |||
2108 | 2108 | ||
2109 | if (E_NOTIMPL == hr) | 2109 | if (E_NOTIMPL == hr) |
2110 | { | 2110 | { |
2111 | hr = pApplication->OnDetectRelatedBundlePackage(args.wzPackageId, args.wzBundleId, args.relationType, args.fPerMachine, args.wzVersion, &results.fCancel); | 2111 | hr = pApplication->OnDetectRelatedBundlePackage(args.wzPackageId, args.wzBundleCode, args.relationType, args.fPerMachine, args.wzVersion, &results.fCancel); |
2112 | } | 2112 | } |
2113 | 2113 | ||
2114 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLEPACKAGE, &args, &results, &hr); | 2114 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLEPACKAGE, &args, &results, &hr); |
@@ -2123,7 +2123,7 @@ static HRESULT OnDetectRelatedBundlePackage( | |||
2123 | 2123 | ||
2124 | LExit: | 2124 | LExit: |
2125 | ReleaseStr(sczVersion); | 2125 | ReleaseStr(sczVersion); |
2126 | ReleaseStr(sczBundleId); | 2126 | ReleaseStr(sczBundleCode); |
2127 | ReleaseStr(sczPackageId); | 2127 | ReleaseStr(sczPackageId); |
2128 | return hr; | 2128 | return hr; |
2129 | } | 2129 | } |
@@ -3650,7 +3650,7 @@ static HRESULT OnPlanForwardCompatibleBundle( | |||
3650 | HRESULT hr = S_OK; | 3650 | HRESULT hr = S_OK; |
3651 | BA_ONPLANFORWARDCOMPATIBLEBUNDLE_ARGS args = { }; | 3651 | BA_ONPLANFORWARDCOMPATIBLEBUNDLE_ARGS args = { }; |
3652 | BA_ONPLANFORWARDCOMPATIBLEBUNDLE_RESULTS results = { }; | 3652 | BA_ONPLANFORWARDCOMPATIBLEBUNDLE_RESULTS results = { }; |
3653 | LPWSTR sczBundleId = NULL; | 3653 | LPWSTR sczBundleCode = NULL; |
3654 | LPWSTR sczBundleTag = NULL; | 3654 | LPWSTR sczBundleTag = NULL; |
3655 | LPWSTR sczVersion = NULL; | 3655 | LPWSTR sczVersion = NULL; |
3656 | 3656 | ||
@@ -3658,10 +3658,10 @@ static HRESULT OnPlanForwardCompatibleBundle( | |||
3658 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); | 3658 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); |
3659 | ExitOnFailure(hr, "Failed to read API version of OnPlanForwardCompatibleBundle args."); | 3659 | ExitOnFailure(hr, "Failed to read API version of OnPlanForwardCompatibleBundle args."); |
3660 | 3660 | ||
3661 | hr = BuffReaderReadString(pReaderArgs, &sczBundleId); | 3661 | hr = BuffReaderReadString(pReaderArgs, &sczBundleCode); |
3662 | ExitOnFailure(hr, "Failed to read bundle id of OnPlanForwardCompatibleBundle args."); | 3662 | ExitOnFailure(hr, "Failed to read bundle code of OnPlanForwardCompatibleBundle args."); |
3663 | 3663 | ||
3664 | args.wzBundleId = sczBundleId; | 3664 | args.wzBundleCode = sczBundleCode; |
3665 | 3665 | ||
3666 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); | 3666 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); |
3667 | ExitOnFailure(hr, "Failed to read relation type of OnPlanForwardCompatibleBundle args."); | 3667 | ExitOnFailure(hr, "Failed to read relation type of OnPlanForwardCompatibleBundle args."); |
@@ -3694,7 +3694,7 @@ static HRESULT OnPlanForwardCompatibleBundle( | |||
3694 | 3694 | ||
3695 | if (E_NOTIMPL == hr) | 3695 | if (E_NOTIMPL == hr) |
3696 | { | 3696 | { |
3697 | hr = pApplication->OnPlanForwardCompatibleBundle(args.wzBundleId, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fRecommendedIgnoreBundle, &results.fCancel, &results.fIgnoreBundle); | 3697 | hr = pApplication->OnPlanForwardCompatibleBundle(args.wzBundleCode, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fRecommendedIgnoreBundle, &results.fCancel, &results.fIgnoreBundle); |
3698 | } | 3698 | } |
3699 | 3699 | ||
3700 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANFORWARDCOMPATIBLEBUNDLE, &args, &results, &hr); | 3700 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANFORWARDCOMPATIBLEBUNDLE, &args, &results, &hr); |
@@ -3713,7 +3713,7 @@ static HRESULT OnPlanForwardCompatibleBundle( | |||
3713 | LExit: | 3713 | LExit: |
3714 | ReleaseStr(sczVersion); | 3714 | ReleaseStr(sczVersion); |
3715 | ReleaseStr(sczBundleTag); | 3715 | ReleaseStr(sczBundleTag); |
3716 | ReleaseStr(sczBundleId); | 3716 | ReleaseStr(sczBundleCode); |
3717 | return hr; | 3717 | return hr; |
3718 | } | 3718 | } |
3719 | 3719 | ||
@@ -4049,16 +4049,16 @@ static HRESULT OnPlanRelatedBundle( | |||
4049 | HRESULT hr = S_OK; | 4049 | HRESULT hr = S_OK; |
4050 | BA_ONPLANRELATEDBUNDLE_ARGS args = { }; | 4050 | BA_ONPLANRELATEDBUNDLE_ARGS args = { }; |
4051 | BA_ONPLANRELATEDBUNDLE_RESULTS results = { }; | 4051 | BA_ONPLANRELATEDBUNDLE_RESULTS results = { }; |
4052 | LPWSTR sczBundleId = NULL; | 4052 | LPWSTR sczBundleCode = NULL; |
4053 | 4053 | ||
4054 | // Read args. | 4054 | // Read args. |
4055 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); | 4055 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); |
4056 | ExitOnFailure(hr, "Failed to read API version of OnPlanRelatedBundle args."); | 4056 | ExitOnFailure(hr, "Failed to read API version of OnPlanRelatedBundle args."); |
4057 | 4057 | ||
4058 | hr = BuffReaderReadString(pReaderArgs, &sczBundleId); | 4058 | hr = BuffReaderReadString(pReaderArgs, &sczBundleCode); |
4059 | ExitOnFailure(hr, "Failed to read package id of OnPlanRelatedBundle args."); | 4059 | ExitOnFailure(hr, "Failed to read package id of OnPlanRelatedBundle args."); |
4060 | 4060 | ||
4061 | args.wzBundleId = sczBundleId; | 4061 | args.wzBundleCode = sczBundleCode; |
4062 | 4062 | ||
4063 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedState)); | 4063 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedState)); |
4064 | ExitOnFailure(hr, "Failed to read recommended state of OnPlanRelatedBundle args."); | 4064 | ExitOnFailure(hr, "Failed to read recommended state of OnPlanRelatedBundle args."); |
@@ -4075,7 +4075,7 @@ static HRESULT OnPlanRelatedBundle( | |||
4075 | 4075 | ||
4076 | if (E_NOTIMPL == hr) | 4076 | if (E_NOTIMPL == hr) |
4077 | { | 4077 | { |
4078 | hr = pApplication->OnPlanRelatedBundle(args.wzBundleId, args.recommendedState, &results.requestedState, &results.fCancel); | 4078 | hr = pApplication->OnPlanRelatedBundle(args.wzBundleCode, args.recommendedState, &results.requestedState, &results.fCancel); |
4079 | } | 4079 | } |
4080 | 4080 | ||
4081 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLE, &args, &results, &hr); | 4081 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLE, &args, &results, &hr); |
@@ -4092,7 +4092,7 @@ static HRESULT OnPlanRelatedBundle( | |||
4092 | ExitOnFailure(hr, "Failed to write requested state of OnPlanRelatedBundle struct."); | 4092 | ExitOnFailure(hr, "Failed to write requested state of OnPlanRelatedBundle struct."); |
4093 | 4093 | ||
4094 | LExit: | 4094 | LExit: |
4095 | ReleaseStr(sczBundleId); | 4095 | ReleaseStr(sczBundleCode); |
4096 | return hr; | 4096 | return hr; |
4097 | } | 4097 | } |
4098 | 4098 | ||
@@ -4106,16 +4106,16 @@ static HRESULT OnPlanRelatedBundleType( | |||
4106 | HRESULT hr = S_OK; | 4106 | HRESULT hr = S_OK; |
4107 | BA_ONPLANRELATEDBUNDLETYPE_ARGS args = { }; | 4107 | BA_ONPLANRELATEDBUNDLETYPE_ARGS args = { }; |
4108 | BA_ONPLANRELATEDBUNDLETYPE_RESULTS results = { }; | 4108 | BA_ONPLANRELATEDBUNDLETYPE_RESULTS results = { }; |
4109 | LPWSTR sczBundleId = NULL; | 4109 | LPWSTR sczBundleCode = NULL; |
4110 | 4110 | ||
4111 | // Read args. | 4111 | // Read args. |
4112 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); | 4112 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); |
4113 | ExitOnFailure(hr, "Failed to read API version of OnPlanRelatedBundleType args."); | 4113 | ExitOnFailure(hr, "Failed to read API version of OnPlanRelatedBundleType args."); |
4114 | 4114 | ||
4115 | hr = BuffReaderReadString(pReaderArgs, &sczBundleId); | 4115 | hr = BuffReaderReadString(pReaderArgs, &sczBundleCode); |
4116 | ExitOnFailure(hr, "Failed to read package id of OnPlanRelatedBundleType args."); | 4116 | ExitOnFailure(hr, "Failed to read package id of OnPlanRelatedBundleType args."); |
4117 | 4117 | ||
4118 | args.wzBundleId = sczBundleId; | 4118 | args.wzBundleCode = sczBundleCode; |
4119 | 4119 | ||
4120 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedType)); | 4120 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedType)); |
4121 | ExitOnFailure(hr, "Failed to read recommended type of OnPlanRelatedBundleType args."); | 4121 | ExitOnFailure(hr, "Failed to read recommended type of OnPlanRelatedBundleType args."); |
@@ -4132,7 +4132,7 @@ static HRESULT OnPlanRelatedBundleType( | |||
4132 | 4132 | ||
4133 | if (E_NOTIMPL == hr) | 4133 | if (E_NOTIMPL == hr) |
4134 | { | 4134 | { |
4135 | hr = pApplication->OnPlanRelatedBundleType(args.wzBundleId, args.recommendedType, &results.requestedType, &results.fCancel); | 4135 | hr = pApplication->OnPlanRelatedBundleType(args.wzBundleCode, args.recommendedType, &results.requestedType, &results.fCancel); |
4136 | } | 4136 | } |
4137 | 4137 | ||
4138 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLETYPE, &args, &results, &hr); | 4138 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLETYPE, &args, &results, &hr); |
@@ -4149,7 +4149,7 @@ static HRESULT OnPlanRelatedBundleType( | |||
4149 | ExitOnFailure(hr, "Failed to write requested type of OnPlanRelatedBundleType struct."); | 4149 | ExitOnFailure(hr, "Failed to write requested type of OnPlanRelatedBundleType struct."); |
4150 | 4150 | ||
4151 | LExit: | 4151 | LExit: |
4152 | ReleaseStr(sczBundleId); | 4152 | ReleaseStr(sczBundleCode); |
4153 | return hr; | 4153 | return hr; |
4154 | } | 4154 | } |
4155 | 4155 | ||
@@ -4163,16 +4163,16 @@ static HRESULT OnPlanRestoreRelatedBundle( | |||
4163 | HRESULT hr = S_OK; | 4163 | HRESULT hr = S_OK; |
4164 | BA_ONPLANRESTORERELATEDBUNDLE_ARGS args = { }; | 4164 | BA_ONPLANRESTORERELATEDBUNDLE_ARGS args = { }; |
4165 | BA_ONPLANRESTORERELATEDBUNDLE_RESULTS results = { }; | 4165 | BA_ONPLANRESTORERELATEDBUNDLE_RESULTS results = { }; |
4166 | LPWSTR sczBundleId = NULL; | 4166 | LPWSTR sczBundleCode = NULL; |
4167 | 4167 | ||
4168 | // Read args. | 4168 | // Read args. |
4169 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); | 4169 | hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); |
4170 | ExitOnFailure(hr, "Failed to read API version of OnPlanRestoreRelatedBundle args."); | 4170 | ExitOnFailure(hr, "Failed to read API version of OnPlanRestoreRelatedBundle args."); |
4171 | 4171 | ||
4172 | hr = BuffReaderReadString(pReaderArgs, &sczBundleId); | 4172 | hr = BuffReaderReadString(pReaderArgs, &sczBundleCode); |
4173 | ExitOnFailure(hr, "Failed to read package id of OnPlanRestoreRelatedBundle args."); | 4173 | ExitOnFailure(hr, "Failed to read package id of OnPlanRestoreRelatedBundle args."); |
4174 | 4174 | ||
4175 | args.wzBundleId = sczBundleId; | 4175 | args.wzBundleCode = sczBundleCode; |
4176 | 4176 | ||
4177 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedState)); | 4177 | hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedState)); |
4178 | ExitOnFailure(hr, "Failed to read recommended state of OnPlanRestoreRelatedBundle args."); | 4178 | ExitOnFailure(hr, "Failed to read recommended state of OnPlanRestoreRelatedBundle args."); |
@@ -4189,7 +4189,7 @@ static HRESULT OnPlanRestoreRelatedBundle( | |||
4189 | 4189 | ||
4190 | if (E_NOTIMPL == hr) | 4190 | if (E_NOTIMPL == hr) |
4191 | { | 4191 | { |
4192 | hr = pApplication->OnPlanRestoreRelatedBundle(args.wzBundleId, args.recommendedState, &results.requestedState, &results.fCancel); | 4192 | hr = pApplication->OnPlanRestoreRelatedBundle(args.wzBundleCode, args.recommendedState, &results.requestedState, &results.fCancel); |
4193 | } | 4193 | } |
4194 | 4194 | ||
4195 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRESTORERELATEDBUNDLE, &args, &results, &hr); | 4195 | pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRESTORERELATEDBUNDLE, &args, &results, &hr); |
@@ -4206,7 +4206,7 @@ static HRESULT OnPlanRestoreRelatedBundle( | |||
4206 | ExitOnFailure(hr, "Failed to write requested state of OnPlanRestoreRelatedBundle struct."); | 4206 | ExitOnFailure(hr, "Failed to write requested state of OnPlanRestoreRelatedBundle struct."); |
4207 | 4207 | ||
4208 | LExit: | 4208 | LExit: |
4209 | ReleaseStr(sczBundleId); | 4209 | ReleaseStr(sczBundleCode); |
4210 | return hr; | 4210 | return hr; |
4211 | } | 4211 | } |
4212 | 4212 | ||