From 5d6046bee5021052da4a666c1e2ceeb0f16af349 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 16 Apr 2021 10:20:41 -0500 Subject: Replace OnResolveSource with OnCacheAcquireResolving Inactivate the engine during OnCacheAcquireBegin and Complete to allow setting the source from there. Fixes #3640 Contributes to #5253 --- src/engine/cache.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/engine/cache.h') diff --git a/src/engine/cache.h b/src/engine/cache.h index acc7acb7..eb964f58 100644 --- a/src/engine/cache.h +++ b/src/engine/cache.h @@ -1,6 +1,7 @@ #pragma once // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. +#define BURN_CACHE_MAX_SEARCH_PATHS 7 #ifdef __cplusplus extern "C" { @@ -52,12 +53,14 @@ HRESULT CacheGetResumePath( __in_z LPCWSTR wzPayloadWorkingPath, __deref_out_z LPWSTR* psczResumePath ); -HRESULT CacheFindLocalSource( +HRESULT CacheGetLocalSourcePaths( + __in_z LPCWSTR wzRelativePath, __in_z LPCWSTR wzSourcePath, __in_z LPCWSTR wzDestinationPath, + __in_z_opt LPCWSTR wzLayoutDirectory, __in BURN_VARIABLES* pVariables, - __out BOOL* pfFound, - __out_z LPWSTR* psczSourceFullPath + __inout LPWSTR** prgSearchPaths, + __out DWORD* pcSearchPaths ); HRESULT CacheSetLastUsedSource( __in BURN_VARIABLES* pVariables, -- cgit v1.2.3-55-g6feb