VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-21 17:14:33 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-26 17:44:06 +0200
commit307568f631dd792780cb552b8eafcd91bd8c651c (patch)
tree782b5ebebb0ca5f07eae03c72e2067e3cf9d4333
parent9b24da3398581da1fa66c6b8f682bbcfa7ded4fd (diff)
downloadVeraCrypt-307568f631dd792780cb552b8eafcd91bd8c651c.tar.gz
VeraCrypt-307568f631dd792780cb552b8eafcd91bd8c651c.zip
Windows Driver: remove unnecessary variables declaration and use in MountManagerMount.
-rw-r--r--src/Driver/Ntdriver.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c
index 3e78fabe..8c63643c 100644
--- a/src/Driver/Ntdriver.c
+++ b/src/Driver/Ntdriver.c
@@ -2573,7 +2573,6 @@ NTSTATUS MountManagerMount (MOUNT_STRUCT *mount)
char buf[200];
PMOUNTMGR_TARGET_NAME in = (PMOUNTMGR_TARGET_NAME) buf;
PMOUNTMGR_CREATE_POINT_INPUT point = (PMOUNTMGR_CREATE_POINT_INPUT) buf;
- UNICODE_STRING symName, devName;
TCGetNTNameFromNumber (arrVolume, sizeof(arrVolume),mount->nDosDriveNo);
in->DeviceNameLength = (USHORT) wcslen (arrVolume) * 2;
@@ -2588,14 +2587,10 @@ NTSTATUS MountManagerMount (MOUNT_STRUCT *mount)
point->SymbolicLinkNameOffset = sizeof (MOUNTMGR_CREATE_POINT_INPUT);
point->SymbolicLinkNameLength = (USHORT) wcslen ((PWSTR) &point[1]) * 2;
- RtlInitUnicodeString(&symName, (PWSTR) (buf + point->SymbolicLinkNameOffset));
-
point->DeviceNameOffset = point->SymbolicLinkNameOffset + point->SymbolicLinkNameLength;
TCGetNTNameFromNumber ((PWSTR) (buf + point->DeviceNameOffset), sizeof(buf) - point->DeviceNameOffset,mount->nDosDriveNo);
point->DeviceNameLength = (USHORT) wcslen ((PWSTR) (buf + point->DeviceNameOffset)) * 2;
- RtlInitUnicodeString(&devName, (PWSTR) (buf + point->DeviceNameOffset));
-
ntStatus = TCDeviceIoControl (MOUNTMGR_DEVICE_NAME, IOCTL_MOUNTMGR_CREATE_POINT, point,
point->DeviceNameOffset + point->DeviceNameLength, 0, 0);