VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-10-08 21:40:40 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-10-10 09:31:38 +0200
commit4fea2089589bae73d5ed41b39142caac63519d98 (patch)
tree57ece0c003f36166cc59b957bc12c1dc102e0d1f /src
parent0b8b50bde9031f83389b7eb820737bf221d277cb (diff)
downloadVeraCrypt-4fea2089589bae73d5ed41b39142caac63519d98.tar.gz
VeraCrypt-4fea2089589bae73d5ed41b39142caac63519d98.zip
Windows: zero TC_IOCTL_GET_SYSTEM_DRIVE_CONFIG input/output parameter as it is done for other IOCTLs
Diffstat (limited to 'src')
-rw-r--r--src/Common/BootEncryption.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp
index 1cfe6fd6..4992e086 100644
--- a/src/Common/BootEncryption.cpp
+++ b/src/Common/BootEncryption.cpp
@@ -1526,6 +1526,7 @@ namespace VeraCrypt
bool BootEncryption::SystemDriveIsDynamic ()
{
GetSystemDriveConfigurationRequest request;
+ memset (&request, 0, sizeof (request));
StringCchCopyW (request.DevicePath, ARRAYSIZE (request.DevicePath), GetSystemDriveConfiguration().DeviceKernelPath.c_str());
CallDriver (TC_IOCTL_GET_SYSTEM_DRIVE_CONFIG, &request, sizeof (request), &request, sizeof (request));
@@ -1898,6 +1899,7 @@ namespace VeraCrypt
throw ParameterIncorrect (SRC_POS);
GetSystemDriveConfigurationRequest request;
+ memset (&request, 0, sizeof (request));
StringCchCopyW (request.DevicePath, ARRAYSIZE (request.DevicePath), GetSystemDriveConfiguration().DeviceKernelPath.c_str());
CallDriver (TC_IOCTL_GET_SYSTEM_DRIVE_CONFIG, &request, sizeof (request), &request, sizeof (request));