VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-05 02:04:18 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-05 04:31:15 +0200
commitea451c72414ea8a14e34fb5da3eaf18c05f9b5dd (patch)
tree0d1bea413eebf6362e2f0085fed76e65b999cacb /src/Driver
parent4682f9b235e23d7d673b07bb57da5c13ef133c2d (diff)
downloadVeraCrypt-ea451c72414ea8a14e34fb5da3eaf18c05f9b5dd.tar.gz
VeraCrypt-ea451c72414ea8a14e34fb5da3eaf18c05f9b5dd.zip
Windows Driver: remove allocation of unused variables
Diffstat (limited to 'src/Driver')
-rw-r--r--src/Driver/Ntdriver.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c
index 8c63643c..a494c68b 100644
--- a/src/Driver/Ntdriver.c
+++ b/src/Driver/Ntdriver.c
@@ -416,8 +416,8 @@ NTSTATUS TCCreateDeviceObject (PDRIVER_OBJECT DriverObject,
PDEVICE_OBJECT * ppDeviceObject,
MOUNT_STRUCT * mount)
{
- UNICODE_STRING Win32NameString, ntUnicodeString;
- WCHAR dosname[32], ntname[32];
+ UNICODE_STRING ntUnicodeString;
+ WCHAR ntname[32];
PEXTENSION Extension;
NTSTATUS ntStatus;
ULONG devChars = 0;
@@ -425,10 +425,8 @@ NTSTATUS TCCreateDeviceObject (PDRIVER_OBJECT DriverObject,
Dump ("TCCreateDeviceObject BEGIN\n");
ASSERT (KeGetCurrentIrql() == PASSIVE_LEVEL);
- TCGetDosNameFromNumber (dosname, sizeof(dosname),mount->nDosDriveNo);
TCGetNTNameFromNumber (ntname, sizeof(ntname),mount->nDosDriveNo);
RtlInitUnicodeString (&ntUnicodeString, ntname);
- RtlInitUnicodeString (&Win32NameString, dosname);
devChars = FILE_DEVICE_SECURE_OPEN;
devChars |= mount->bMountReadOnly ? FILE_READ_ONLY_DEVICE : 0;