From c53fd7ef0c2283003524722210b8599e9f3b4d18 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 13 Nov 2015 00:30:01 +0100 Subject: Windows Driver: solve compilation error in Debug build caused by a missing variable. --- src/Driver/Ntdriver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index 2a82c5ac..a069bd10 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; -- cgit v1.2.3