mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows Driver: remove allocation of unused variables
This commit is contained in:
@@ -416,8 +416,8 @@ NTSTATUS TCCreateDeviceObject (PDRIVER_OBJECT DriverObject,
|
|||||||
PDEVICE_OBJECT * ppDeviceObject,
|
PDEVICE_OBJECT * ppDeviceObject,
|
||||||
MOUNT_STRUCT * mount)
|
MOUNT_STRUCT * mount)
|
||||||
{
|
{
|
||||||
UNICODE_STRING Win32NameString, ntUnicodeString;
|
UNICODE_STRING ntUnicodeString;
|
||||||
WCHAR dosname[32], ntname[32];
|
WCHAR ntname[32];
|
||||||
PEXTENSION Extension;
|
PEXTENSION Extension;
|
||||||
NTSTATUS ntStatus;
|
NTSTATUS ntStatus;
|
||||||
ULONG devChars = 0;
|
ULONG devChars = 0;
|
||||||
@@ -425,10 +425,8 @@ NTSTATUS TCCreateDeviceObject (PDRIVER_OBJECT DriverObject,
|
|||||||
Dump ("TCCreateDeviceObject BEGIN\n");
|
Dump ("TCCreateDeviceObject BEGIN\n");
|
||||||
ASSERT (KeGetCurrentIrql() == PASSIVE_LEVEL);
|
ASSERT (KeGetCurrentIrql() == PASSIVE_LEVEL);
|
||||||
|
|
||||||
TCGetDosNameFromNumber (dosname, sizeof(dosname),mount->nDosDriveNo);
|
|
||||||
TCGetNTNameFromNumber (ntname, sizeof(ntname),mount->nDosDriveNo);
|
TCGetNTNameFromNumber (ntname, sizeof(ntname),mount->nDosDriveNo);
|
||||||
RtlInitUnicodeString (&ntUnicodeString, ntname);
|
RtlInitUnicodeString (&ntUnicodeString, ntname);
|
||||||
RtlInitUnicodeString (&Win32NameString, dosname);
|
|
||||||
|
|
||||||
devChars = FILE_DEVICE_SECURE_OPEN;
|
devChars = FILE_DEVICE_SECURE_OPEN;
|
||||||
devChars |= mount->bMountReadOnly ? FILE_READ_ONLY_DEVICE : 0;
|
devChars |= mount->bMountReadOnly ? FILE_READ_ONLY_DEVICE : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user