Windows Driver: use functions from ntstrsafe.h instead of strsafe.h since they are destined for kernel mode

This commit is contained in:
Mounir IDRASSI 2021-08-29 15:21:26 +02:00
parent d33c5b6f08
commit d9e1d57a53
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -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