aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/search.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/burn/engine/search.cpp')
-rw-r--r--src/burn/engine/search.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/burn/engine/search.cpp b/src/burn/engine/search.cpp
index 626ffb28..1f128e95 100644
--- a/src/burn/engine/search.cpp
+++ b/src/burn/engine/search.cpp
@@ -1252,7 +1252,8 @@ static HRESULT MsiProductSearch(
1252 hr = BVariantChangeType(&value, type); 1252 hr = BVariantChangeType(&value, type);
1253 ExitOnFailure(hr, "Failed to change value type."); 1253 ExitOnFailure(hr, "Failed to change value type.");
1254 1254
1255 // Alter value here after value has changed to numberic type. 1255 // When testing if a product exists, replace the value with a numeric "true" or "false"
1256 // based on the calculated install state.
1256 if (BURN_MSI_PRODUCT_SEARCH_TYPE_EXISTS == pSearch->MsiProductSearch.Type) 1257 if (BURN_MSI_PRODUCT_SEARCH_TYPE_EXISTS == pSearch->MsiProductSearch.Type)
1257 { 1258 {
1258 value.llValue = (value.llValue == INSTALLSTATE_ABSENT) ? 0 : 1; 1259 value.llValue = (value.llValue == INSTALLSTATE_ABSENT) ? 0 : 1;