diff --git a/dev/dll/SharedHelpers.cpp b/dev/dll/SharedHelpers.cpp index 17d82be976..52fc10d276 100755 --- a/dev/dll/SharedHelpers.cpp +++ b/dev/dll/SharedHelpers.cpp @@ -223,11 +223,11 @@ template bool SharedHelpers::IsAPIContractVxAvailable() static bool isAPIContractVxAvailable = false; if (!isAPIContractVxAvailableInitialized) { - isAPIContractVxAvailableInitialized = true; // The CBS package is only ever used as a part of the Windows build. Therefore, we can assume that // all API contracts are present since we can never be running these binaries on a windows build // that does not match the windows sdk these binaries were compiled against. isAPIContractVxAvailable = IsInCBSPackage() ? true : winrt::ApiInformation::IsApiContractPresent(L"Windows.Foundation.UniversalApiContract", APIVersion); + isAPIContractVxAvailableInitialized = true; } return isAPIContractVxAvailable;