MSBuild: Make switchable between VS2019 and VS2022

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2022-10-28 08:02:07 +02:00
parent 963c2e44ac
commit 9ff26e1422
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ namespace UnitTests
Assert::IsTrue(ConvertStringSecurityDescriptorToSecurityDescriptorW(L"O:BAD:PAI(A;;FA;;;BA)", SDDL_REVISION_1, sa, NULL)); Assert::IsTrue(ConvertStringSecurityDescriptorToSecurityDescriptorW(L"O:BAD:PAI(A;;FA;;;BA)", SDDL_REVISION_1, sa, NULL));
Assert::IsNotNull(sa.lpSecurityDescriptor); Assert::IsNotNull(sa.lpSecurityDescriptor);
winstd::security_attributes sa2(move(sa)); 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::IsNull(sa.lpSecurityDescriptor);
Assert::IsNotNull(sa2.lpSecurityDescriptor); Assert::IsNotNull(sa2.lpSecurityDescriptor);
} }

View File

@ -30,7 +30,7 @@
<PropertyGroup Label="Configuration"> <PropertyGroup Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType> <ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries> <UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset> <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
<CharacterSet>Unicode</CharacterSet> <CharacterSet>Unicode</CharacterSet>
<UseOfMfc>false</UseOfMfc> <UseOfMfc>false</UseOfMfc>
</PropertyGroup> </PropertyGroup>