PreFast compliance fixes - Installer (#4144)
This change brings changes requested by PreFast static analysis tool.
This commit is contained in:
Родитель
5f1c5a9aa0
Коммит
a51f8e3758
|
@ -328,7 +328,7 @@ public:
|
|||
|
||||
~PackageIdentity() = default;
|
||||
|
||||
PackageIdentity& operator=(PackageIdentity&& other)
|
||||
PackageIdentity& operator=(PackageIdentity&& other) noexcept
|
||||
{
|
||||
if (this != &other)
|
||||
{
|
||||
|
|
|
@ -70,7 +70,7 @@ void WindowsAppRuntimeInstaller::Console::DisplayError(const HRESULT hr)
|
|||
}
|
||||
|
||||
// Don't log redundant Hr information
|
||||
if (installActivityContext.GetDeploymentErrorExtendedHResult() &&
|
||||
if (installActivityContext.GetDeploymentErrorExtendedHResult() != S_OK &&
|
||||
installActivityContext.GetDeploymentErrorExtendedHResult() != hResult &&
|
||||
(installActivityContext.GetInstallStage() == InstallStage::StagePackage ||
|
||||
installActivityContext.GetInstallStage() == InstallStage::AddPackage ||
|
||||
|
|
|
@ -30,12 +30,14 @@ void __stdcall wilResultLoggingCallback(const wil::FailureInfo& failure) noexcep
|
|||
|
||||
class WindowsAppRuntimeInstaller_TraceLogger final : public wil::TraceLoggingProvider
|
||||
{
|
||||
#pragma prefast(push)
|
||||
#pragma prefast(disable:6387, "PreFast gets confused over tracelogging parameters")
|
||||
IMPLEMENT_TRACELOGGING_CLASS(
|
||||
WindowsAppRuntimeInstaller_TraceLogger,
|
||||
"Microsoft.WindowsAppRuntimeInstaller",
|
||||
// {7028b782-2ccf-5a66-0008-9b040616d425}
|
||||
(0x7028b782, 0x2ccf, 0x5a66, 0x00, 0x08, 0x9b, 0x04, 0x06, 0x16, 0xd4, 0x25));
|
||||
|
||||
#pragma prefast(pop)
|
||||
public:
|
||||
|
||||
BEGIN_COMPLIANT_CRITICAL_DATA_ACTIVITY_CLASS(Install, PDT_ProductAndServicePerformance);
|
||||
|
|
Загрузка…
Ссылка в новой задаче