diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-12-25 16:18:19 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-12-25 16:18:19 +0100 |
commit | 81f0adcc35fb5a8e0d01f361f9bea4716db452ff (patch) | |
tree | 52ac1b7dad5ba84d50c40a3e757a79ca89fcd549 | |
parent | 283059523dd5d57f275390c0768417c00fc26adf (diff) | |
download | VeraCrypt-81f0adcc35fb5a8e0d01f361f9bea4716db452ff.tar.gz VeraCrypt-81f0adcc35fb5a8e0d01f361f9bea4716db452ff.zip |
Windows Driver: set Windows 10 version 1809 as minimum.
To support this, we had to replace ExAllocatePool2 by ExAllocatePoolUninitialized.
-rw-r--r-- | src/Common/Tcdefs.h | 2 | ||||
-rw-r--r-- | src/Driver/Driver.vcxproj | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Common/Tcdefs.h b/src/Common/Tcdefs.h index 0051dba2..48fc12b6 100644 --- a/src/Common/Tcdefs.h +++ b/src/Common/Tcdefs.h @@ -260,9 +260,9 @@ void ThrowFatalException(int line); extern ULONG AllocTag; -#define TCalloc(size) ((void *) ExAllocatePool2( POOL_FLAG_NON_PAGED, size, AllocTag )) +#define TCalloc(size) ((void *) ExAllocatePoolUninitialized( NonPagedPoolNx , size, AllocTag )) #define TCfree(memblock) ExFreePoolWithTag( memblock, AllocTag ) #define DEVICE_DRIVER diff --git a/src/Driver/Driver.vcxproj b/src/Driver/Driver.vcxproj index 7f135b35..60585351 100644 --- a/src/Driver/Driver.vcxproj +++ b/src/Driver/Driver.vcxproj @@ -36,36 +36,36 @@ <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> <ConfigurationType>Driver</ConfigurationType> <DriverType>WDM</DriverType> <DriverTargetPlatform>Universal</DriverTargetPlatform> - <_NT_TARGET_VERSION>0xA000008</_NT_TARGET_VERSION> + <_NT_TARGET_VERSION>0xA000006</_NT_TARGET_VERSION> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <TargetVersion>Windows10</TargetVersion> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> <ConfigurationType>Driver</ConfigurationType> <DriverType>WDM</DriverType> <DriverTargetPlatform>Universal</DriverTargetPlatform> - <_NT_TARGET_VERSION>0xA000008</_NT_TARGET_VERSION> + <_NT_TARGET_VERSION>0xA000006</_NT_TARGET_VERSION> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> <TargetVersion>Windows10</TargetVersion> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> <ConfigurationType>Driver</ConfigurationType> <DriverType>WDM</DriverType> <DriverTargetPlatform>Universal</DriverTargetPlatform> - <_NT_TARGET_VERSION>0xA000008</_NT_TARGET_VERSION> + <_NT_TARGET_VERSION>0xA000006</_NT_TARGET_VERSION> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> <TargetVersion>Windows10</TargetVersion> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> <ConfigurationType>Driver</ConfigurationType> <DriverType>WDM</DriverType> <DriverTargetPlatform>Universal</DriverTargetPlatform> - <_NT_TARGET_VERSION>0xA000008</_NT_TARGET_VERSION> + <_NT_TARGET_VERSION>0xA000006</_NT_TARGET_VERSION> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> |