winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0ec8c1bc6da650994e02b948b552f4c183d15140
parent 7d29a95d1f0cf41c9f996df34bdc662a6f2d444b
Author: yao-msft <50888816+yao-msft@users.noreply.github.com>
Date:   Thu, 16 Mar 2023 13:08:09 -0700

Make sure source agreements are initialized before checking (#3080)


Diffstat:
Msrc/Microsoft.Management.Deployment/PackageCatalogReference.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Microsoft.Management.Deployment/PackageCatalogReference.cpp b/src/Microsoft.Management.Deployment/PackageCatalogReference.cpp @@ -61,7 +61,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation return GetConnectCatalogErrorResult(); } - if (!m_acceptSourceAgreements && m_sourceAgreements.Size() != 0) + if (!m_acceptSourceAgreements && SourceAgreements().Size() != 0) { return GetConnectSourceAgreementsNotAcceptedErrorResult(); }