diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-04-16 09:42:01 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-04-19 23:12:55 -0500 |
commit | c88806b89293f5bb92c42e90230e48be6b79b7f4 (patch) | |
tree | af9fb6fdbe68d0e208115a7d7bd73d183aff880f /src/engine/cache.cpp | |
parent | 941c47e5a3f57ce9626b447a95740b1444e69343 (diff) | |
download | wix-c88806b89293f5bb92c42e90230e48be6b79b7f4.tar.gz wix-c88806b89293f5bb92c42e90230e48be6b79b7f4.tar.bz2 wix-c88806b89293f5bb92c42e90230e48be6b79b7f4.zip |
Detect whether the bundle is cached.
Diffstat (limited to 'src/engine/cache.cpp')
-rw-r--r-- | src/engine/cache.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine/cache.cpp b/src/engine/cache.cpp index 667ca9e0..46c2650a 100644 --- a/src/engine/cache.cpp +++ b/src/engine/cache.cpp | |||
@@ -733,6 +733,7 @@ extern "C" HRESULT CacheCompleteBundle( | |||
733 | hr = PathConcat(sczTargetDirectory, wzExecutableName, &sczTargetPath); | 733 | hr = PathConcat(sczTargetDirectory, wzExecutableName, &sczTargetPath); |
734 | ExitOnFailure(hr, "Failed to combine completed path with engine file name."); | 734 | ExitOnFailure(hr, "Failed to combine completed path with engine file name."); |
735 | 735 | ||
736 | // We can't just use wzExecutablePath because we needed to call CreateCompletedPath to ensure that the destination was secured. | ||
736 | Assert(CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, NORM_IGNORECASE, wzExecutablePath, -1, sczTargetPath, -1)); | 737 | Assert(CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, NORM_IGNORECASE, wzExecutablePath, -1, sczTargetPath, -1)); |
737 | 738 | ||
738 | // If the bundle is running out of the package cache then we don't need to copy it there | 739 | // If the bundle is running out of the package cache then we don't need to copy it there |