diff options
Diffstat (limited to 'src/engine/detect.cpp')
| -rw-r--r-- | src/engine/detect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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( | |||
| 175 | hr = VerCompareParsedVersions(pRegistration->pVersion, pRelatedBundle->pVersion, &nCompareResult); | 175 | hr = VerCompareParsedVersions(pRegistration->pVersion, pRelatedBundle->pVersion, &nCompareResult); |
| 176 | ExitOnFailure(hr, "Failed to compare bundle version '%ls' to related bundle version '%ls'", pRegistration->pVersion, pRelatedBundle->pVersion); | 176 | ExitOnFailure(hr, "Failed to compare bundle version '%ls' to related bundle version '%ls'", pRegistration->pVersion, pRelatedBundle->pVersion); |
| 177 | 177 | ||
| 178 | if (nCompareResult > 0) | 178 | if (nCompareResult < 0) |
| 179 | { | 179 | { |
| 180 | operation = BOOTSTRAPPER_RELATED_OPERATION_MAJOR_UPGRADE; | 180 | operation = BOOTSTRAPPER_RELATED_OPERATION_DOWNGRADE; |
| 181 | } | 181 | } |
| 182 | else if (nCompareResult < 0) | 182 | else |
| 183 | { | 183 | { |
| 184 | operation = BOOTSTRAPPER_RELATED_OPERATION_DOWNGRADE; | 184 | operation = BOOTSTRAPPER_RELATED_OPERATION_MAJOR_UPGRADE; |
| 185 | } | 185 | } |
| 186 | } | 186 | } |
| 187 | break; | 187 | break; |
