From 81f0adcc35fb5a8e0d01f361f9bea4716db452ff Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 25 Dec 2024 16:18:19 +0100 Subject: Windows Driver: set Windows 10 version 1809 as minimum. To support this, we had to replace ExAllocatePool2 by ExAllocatePoolUninitialized. --- src/Common/Tcdefs.h | 2 +- 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 @@ -261,7 +261,7 @@ 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 @@ -37,7 +37,7 @@ Driver WDM Universal - <_NT_TARGET_VERSION>0xA000008 + <_NT_TARGET_VERSION>0xA000006 Windows10 @@ -46,7 +46,7 @@ Driver WDM Universal - <_NT_TARGET_VERSION>0xA000008 + <_NT_TARGET_VERSION>0xA000006 Windows10 @@ -55,7 +55,7 @@ Driver WDM Universal - <_NT_TARGET_VERSION>0xA000008 + <_NT_TARGET_VERSION>0xA000006 Windows10 @@ -64,7 +64,7 @@ Driver WDM Universal - <_NT_TARGET_VERSION>0xA000008 + <_NT_TARGET_VERSION>0xA000006 -- cgit v1.2.3