VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-29 15:21:26 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-30 00:26:50 +0200
commitd9e1d57a5323baa821f9962476929b85677ab469 (patch)
tree8c5551a3e7b887951e05302b54f5f7a5df6ec7b0 /src
parentd33c5b6f0846dfe34ac4b2ecc1348897607e0faf (diff)
downloadVeraCrypt-d9e1d57a5323baa821f9962476929b85677ab469.tar.gz
VeraCrypt-d9e1d57a5323baa821f9962476929b85677ab469.zip
Windows Driver: use functions from ntstrsafe.h instead of strsafe.h since they are destined for kernel mode
Diffstat (limited to 'src')
-rw-r--r--src/Common/Crypto.c6
1 files changed, 6 insertions, 0 deletions
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 <string.h>
#ifndef TC_WINDOWS_BOOT
+#ifdef TC_WINDOWS_DRIVER
+#include <ntstrsafe.h>
+#define StringCchCatW RtlStringCchCatW
+#define StringCchCopyW RtlStringCchCopyW
+#else
#include <strsafe.h>
+#endif
#include "EncryptionThreadPool.h"
#endif
#endif