diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-03-16 14:57:16 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-03-16 20:14:37 -0500 |
commit | c1694843f7c54c7f9feb3f7074a31ff8499c9644 (patch) | |
tree | 959d8e60bedecbc76abc22c0ce52decad6dbcfea /src/libs | |
parent | 04b84e3b55402707497dab249a300f9cf1d216c7 (diff) | |
download | wix-c1694843f7c54c7f9feb3f7074a31ff8499c9644.tar.gz wix-c1694843f7c54c7f9feb3f7074a31ff8499c9644.tar.bz2 wix-c1694843f7c54c7f9feb3f7074a31ff8499c9644.zip |
Fix themes to account for UnsafeUninstall action.
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/thmutil.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/thmutil.cpp b/src/libs/dutil/WixToolset.DUtil/thmutil.cpp index ab1a2233..d3d32176 100644 --- a/src/libs/dutil/WixToolset.DUtil/thmutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/thmutil.cpp | |||
@@ -5609,8 +5609,8 @@ static HRESULT ShowControl( | |||
5609 | // Try to format each control's text based on context, except for editboxes since their text comes from the user. | 5609 | // Try to format each control's text based on context, except for editboxes since their text comes from the user. |
5610 | if (pTheme->pfnFormatString && ((pControl->sczText && *pControl->sczText) || pControl->cConditionalText) && THEME_CONTROL_TYPE_EDITBOX != pControl->type) | 5610 | if (pTheme->pfnFormatString && ((pControl->sczText && *pControl->sczText) || pControl->cConditionalText) && THEME_CONTROL_TYPE_EDITBOX != pControl->type) |
5611 | { | 5611 | { |
5612 | LPWSTR wzText = pControl->sczText; | 5612 | LPCWSTR wzText = pControl->sczText; |
5613 | LPWSTR wzNote = pControl->sczNote; | 5613 | LPCWSTR wzNote = pControl->sczNote; |
5614 | 5614 | ||
5615 | if (pTheme->pfnEvaluateCondition) | 5615 | if (pTheme->pfnEvaluateCondition) |
5616 | { | 5616 | { |
@@ -5619,7 +5619,6 @@ static HRESULT ShowControl( | |||
5619 | for (DWORD j = 0; j < pControl->cConditionalText; ++j) | 5619 | for (DWORD j = 0; j < pControl->cConditionalText; ++j) |
5620 | { | 5620 | { |
5621 | THEME_CONDITIONAL_TEXT* pConditionalText = pControl->rgConditionalText + j; | 5621 | THEME_CONDITIONAL_TEXT* pConditionalText = pControl->rgConditionalText + j; |
5622 | wzText = pConditionalText->sczText; | ||
5623 | 5622 | ||
5624 | if (pConditionalText->sczCondition) | 5623 | if (pConditionalText->sczCondition) |
5625 | { | 5624 | { |
@@ -5641,7 +5640,6 @@ static HRESULT ShowControl( | |||
5641 | for (DWORD j = 0; j < pControl->CommandLink.cConditionalNotes; ++j) | 5640 | for (DWORD j = 0; j < pControl->CommandLink.cConditionalNotes; ++j) |
5642 | { | 5641 | { |
5643 | THEME_CONDITIONAL_TEXT* pConditionalNote = pControl->CommandLink.rgConditionalNotes + j; | 5642 | THEME_CONDITIONAL_TEXT* pConditionalNote = pControl->CommandLink.rgConditionalNotes + j; |
5644 | wzNote = pConditionalNote->sczText; | ||
5645 | 5643 | ||
5646 | if (pConditionalNote->sczCondition) | 5644 | if (pConditionalNote->sczCondition) |
5647 | { | 5645 | { |