// it does
//
Status = IoGetDeviceProperty(m_PhysicalDeviceObject, DevicePropertyDriverKeyName, IoStack->Parameters.DeviceIoControl.OutputBufferLength - sizeof(ULONG), DriverKey->DriverKeyName, &ResultLength);
-
- if (NT_SUCCESS(Status))
- {
- //
- // informal debug print
- //
- DPRINT1("[%s] Result %S\n", m_USBType, DriverKey->DriverKeyName);
- }
}
//
PC_ASSERT(IoStack->Parameters.DeviceIoControl.OutputBufferLength - sizeof(ULONG) - sizeof(WCHAR) >= ResultLength);
DriverKey->DriverKeyName[ResultLength / sizeof(WCHAR)] = L'\0';
- DPRINT1("[%s] Result %S\n", m_USBType, DriverKey->DriverKeyName);
}
//
swprintf(Buffer, L"USB\\ROOT_HUB");
}
- DPRINT("Name %S\n", Buffer);
-
//
// calculate length
//
Index += swprintf(&Buffer[Index], L"USB\\ROOT_HUB") + 1;
}
- Buffer[Index] = UNICODE_NULL;
- Index++;
-
-
- DPRINT1("[%s] Name %S\n", m_USBType, Buffer);
+ Buffer[Index] = UNICODE_NULL;
+ Index++;
//
// allocate buffer