From fac8fc35113cd9c42dc9cc4ea62d2645db863760 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 31 Oct 2020 21:22:52 -0600 Subject: Default to same-version upgrades for bundles. --- src/engine/detect.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/engine/detect.cpp') diff --git a/src/engine/detect.cpp b/src/engine/detect.cpp index 9e4681bb..176780af 100644 --- a/src/engine/detect.cpp +++ b/src/engine/detect.cpp @@ -175,13 +175,13 @@ extern "C" HRESULT DetectReportRelatedBundles( hr = VerCompareParsedVersions(pRegistration->pVersion, pRelatedBundle->pVersion, &nCompareResult); ExitOnFailure(hr, "Failed to compare bundle version '%ls' to related bundle version '%ls'", pRegistration->pVersion, pRelatedBundle->pVersion); - if (nCompareResult > 0) + if (nCompareResult < 0) { - operation = BOOTSTRAPPER_RELATED_OPERATION_MAJOR_UPGRADE; + operation = BOOTSTRAPPER_RELATED_OPERATION_DOWNGRADE; } - else if (nCompareResult < 0) + else { - operation = BOOTSTRAPPER_RELATED_OPERATION_DOWNGRADE; + operation = BOOTSTRAPPER_RELATED_OPERATION_MAJOR_UPGRADE; } } break; -- cgit v1.2.3-55-g6feb