[CMBATT] Correctly print UNICODE_STRING

This commit is contained in:
Hervé Poussineau 2024-02-01 19:05:52 +01:00
parent c858429fb1
commit 0be4e4aa6d

View file

@ -1267,9 +1267,9 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
/* Buffer allocated, copy the string */ /* Buffer allocated, copy the string */
RtlCopyUnicodeString(&GlobalRegistryPath, RegistryPath); RtlCopyUnicodeString(&GlobalRegistryPath, RegistryPath);
if (CmBattDebug & CMBATT_GENERIC_INFO) if (CmBattDebug & CMBATT_GENERIC_INFO)
DbgPrint("CmBatt DriverEntry - Obj (%08x) Path \"%ws\"\n", DbgPrint("CmBatt DriverEntry - Obj (%08x) Path \"%wZ\"\n",
DriverObject, DriverObject,
RegistryPath->Buffer); RegistryPath);
/* Setup the major dispatchers */ /* Setup the major dispatchers */
DriverObject->MajorFunction[IRP_MJ_CREATE] = CmBattOpenClose; DriverObject->MajorFunction[IRP_MJ_CREATE] = CmBattOpenClose;