VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
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