VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-11-12 23:30:01 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-11-26 00:44:43 (GMT)
commitc53fd7ef0c2283003524722210b8599e9f3b4d18 (patch)
tree172daef2d89436731fad8127b8195eb4b5e99269 /src/Driver
parentd40eedeaaf4074f3800f52c706ed5334de68f4a5 (diff)
downloadVeraCrypt-c53fd7ef0c2283003524722210b8599e9f3b4d18.zip
VeraCrypt-c53fd7ef0c2283003524722210b8599e9f3b4d18.tar.gz
Windows Driver: solve compilation error in Debug build caused by a missing variable.
Diffstat (limited to 'src/Driver')
-rw-r--r--src/Driver/Ntdriver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c
index 2a82c5a..a069bd1 100644
--- a/src/Driver/Ntdriver.c
+++ b/src/Driver/Ntdriver.c
@@ -421,12 +421,18 @@ NTSTATUS TCCreateDeviceObject (PDRIVER_OBJECT DriverObject,
PEXTENSION Extension;
NTSTATUS ntStatus;
ULONG devChars = 0;
+#if defined (DEBUG)
+ WCHAR dosname[32];
+#endif
Dump ("TCCreateDeviceObject BEGIN\n");
ASSERT (KeGetCurrentIrql() == PASSIVE_LEVEL);
TCGetNTNameFromNumber (ntname, sizeof(ntname),mount->nDosDriveNo);
RtlInitUnicodeString (&ntUnicodeString, ntname);
+#if defined (DEBUG)
+ TCGetDosNameFromNumber (dosname, sizeof(dosname),mount->nDosDriveNo, DeviceNamespaceDefault);
+#endif
devChars = FILE_DEVICE_SECURE_OPEN;
devChars |= mount->bMountReadOnly ? FILE_READ_ONLY_DEVICE : 0;