diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-10-05 02:04:18 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-10-05 04:31:15 +0200 |
commit | ea451c72414ea8a14e34fb5da3eaf18c05f9b5dd (patch) | |
tree | 0d1bea413eebf6362e2f0085fed76e65b999cacb /src/Driver/Ntdriver.c | |
parent | 4682f9b235e23d7d673b07bb57da5c13ef133c2d (diff) | |
download | VeraCrypt-ea451c72414ea8a14e34fb5da3eaf18c05f9b5dd.tar.gz VeraCrypt-ea451c72414ea8a14e34fb5da3eaf18c05f9b5dd.zip |
Windows Driver: remove allocation of unused variables
Diffstat (limited to 'src/Driver/Ntdriver.c')
-rw-r--r-- | src/Driver/Ntdriver.c | 6 |
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;
|