From b59dad5536f3e599827123b48d62319ac5b595a8 Mon Sep 17 00:00:00 2001 From: lukfol Date: Tue, 29 Nov 2016 19:03:46 +0100 Subject: [PATCH] Update MBRFilter.c InstanceName should be initialized --- MBRFilter/MBRFilter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MBRFilter/MBRFilter.c b/MBRFilter/MBRFilter.c index b2cb775..f4d43ab 100755 --- a/MBRFilter/MBRFilter.c +++ b/MBRFilter/MBRFilter.c @@ -336,6 +336,7 @@ NTSTATUS MBRFQueryWmiRegInfo(IN PDEVICE_OBJECT DeviceObject,OUT ULONG *RegFlags, size = deviceExtension->PhysicalDeviceName.Length + sizeof(UNICODE_NULL); InstanceName->Buffer = ExAllocatePool(PagedPool, size); if (InstanceName->Buffer) { + RtlCopyUnicodeString(InstanceName, &deviceExtension->PhysicalDeviceName); *RegistryPath = &MBRFRegistryPath; *RegFlags = WMIREG_FLAG_INSTANCE_PDO | WMIREG_FLAG_EXPENSIVE; *Pdo = deviceExtension->PhysicalDeviceObject;