mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-01-04 20:58:12 -06:00
Windows Driver: solve compilation error in Debug build caused by a missing variable.
This commit is contained in:
@@ -421,12 +421,18 @@ NTSTATUS TCCreateDeviceObject (PDRIVER_OBJECT DriverObject,
|
|||||||
PEXTENSION Extension;
|
PEXTENSION Extension;
|
||||||
NTSTATUS ntStatus;
|
NTSTATUS ntStatus;
|
||||||
ULONG devChars = 0;
|
ULONG devChars = 0;
|
||||||
|
#if defined (DEBUG)
|
||||||
|
WCHAR dosname[32];
|
||||||
|
#endif
|
||||||
|
|
||||||
Dump ("TCCreateDeviceObject BEGIN\n");
|
Dump ("TCCreateDeviceObject BEGIN\n");
|
||||||
ASSERT (KeGetCurrentIrql() == PASSIVE_LEVEL);
|
ASSERT (KeGetCurrentIrql() == PASSIVE_LEVEL);
|
||||||
|
|
||||||
TCGetNTNameFromNumber (ntname, sizeof(ntname),mount->nDosDriveNo);
|
TCGetNTNameFromNumber (ntname, sizeof(ntname),mount->nDosDriveNo);
|
||||||
RtlInitUnicodeString (&ntUnicodeString, ntname);
|
RtlInitUnicodeString (&ntUnicodeString, ntname);
|
||||||
|
#if defined (DEBUG)
|
||||||
|
TCGetDosNameFromNumber (dosname, sizeof(dosname),mount->nDosDriveNo, DeviceNamespaceDefault);
|
||||||
|
#endif
|
||||||
|
|
||||||
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