From 9ff26e14227c1c9243e882e49d5960b215cc9603 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 28 Oct 2022 08:02:07 +0200 Subject: [PATCH] MSBuild: Make switchable between VS2019 and VS2022 Signed-off-by: Simon Rozman --- UnitTests/SDDL.cpp | 1 + UnitTests/UnitTests.vcxproj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/UnitTests/SDDL.cpp b/UnitTests/SDDL.cpp index f141517a..a64bcb67 100644 --- a/UnitTests/SDDL.cpp +++ b/UnitTests/SDDL.cpp @@ -19,6 +19,7 @@ namespace UnitTests Assert::IsTrue(ConvertStringSecurityDescriptorToSecurityDescriptorW(L"O:BAD:PAI(A;;FA;;;BA)", SDDL_REVISION_1, sa, NULL)); Assert::IsNotNull(sa.lpSecurityDescriptor); winstd::security_attributes sa2(move(sa)); +#pragma warning(suppress: 26800) // That's exactly what we are testing here: if the object is in a sane state after being moved from. Assert::IsNull(sa.lpSecurityDescriptor); Assert::IsNotNull(sa2.lpSecurityDescriptor); } diff --git a/UnitTests/UnitTests.vcxproj b/UnitTests/UnitTests.vcxproj index 7dea8125..d641831a 100644 --- a/UnitTests/UnitTests.vcxproj +++ b/UnitTests/UnitTests.vcxproj @@ -30,7 +30,7 @@ DynamicLibrary true - v142 + $(DefaultPlatformToolset) Unicode false