From d9e1d57a5323baa821f9962476929b85677ab469 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 29 Aug 2021 15:21:26 +0200 Subject: Windows Driver: use functions from ntstrsafe.h instead of strsafe.h since they are destined for kernel mode --- src/Common/Crypto.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c index ead62bb8..da233090 100644 --- a/src/Common/Crypto.c +++ b/src/Common/Crypto.c @@ -19,7 +19,13 @@ #if !defined(_UEFI) #include #ifndef TC_WINDOWS_BOOT +#ifdef TC_WINDOWS_DRIVER +#include +#define StringCchCatW RtlStringCchCatW +#define StringCchCopyW RtlStringCchCopyW +#else #include +#endif #include "EncryptionThreadPool.h" #endif #endif -- cgit v1.2.3