From bafc4f682a798eb375d32c1f4777664aceb1e15f Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sun, 18 Oct 2020 14:05:51 -0500 Subject: Update string versioning. Update condition parsing to allow specific characters for versions. Log every time an invalid version is parsed. --- src/engine/relatedbundle.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/engine/relatedbundle.cpp') diff --git a/src/engine/relatedbundle.cpp b/src/engine/relatedbundle.cpp index e6d6516a..7b0da4a4 100644 --- a/src/engine/relatedbundle.cpp +++ b/src/engine/relatedbundle.cpp @@ -414,6 +414,11 @@ static HRESULT LoadRelatedBundleFromKey( hr = VerParseVersion(sczBundleVersion, 0, FALSE, &pRelatedBundle->pVersion); ExitOnFailure(hr, "Failed to parse pseudo bundle version: %ls", sczBundleVersion); + if (pRelatedBundle->pVersion->fInvalid) + { + LogId(REPORT_WARNING, MSG_RELATED_PACKAGE_INVALID_VERSION, wzRelatedBundleId, sczBundleVersion); + } + hr = RegReadString(hkBundleId, BURN_REGISTRATION_REGISTRY_BUNDLE_CACHE_PATH, &sczCachePath); ExitOnFailure(hr, "Failed to read cache path from registry for bundle: %ls", wzRelatedBundleId); -- cgit v1.2.3-55-g6feb