From 131b1e73dcd2cf3a783511dc134a8a9521158b44 Mon Sep 17 00:00:00 2001 From: Leeqwind Date: Thu, 10 Aug 2017 11:46:39 +0800 Subject: [PATCH] Update MBRFilter.c --- MBRFilter/MBRFilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MBRFilter/MBRFilter.c b/MBRFilter/MBRFilter.c index b2cb775..8d6fa3d 100755 --- a/MBRFilter/MBRFilter.c +++ b/MBRFilter/MBRFilter.c @@ -548,7 +548,7 @@ NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING Registry DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL,"MBRF: loading\n"); MBRFRegistryPath.MaximumLength = RegistryPath->Length + sizeof(UNICODE_NULL); MBRFRegistryPath.Buffer = ExAllocatePool(PagedPool,MBRFRegistryPath.MaximumLength); - if (!MBRFRegistryPath.Buffer) { + if (MBRFRegistryPath.Buffer) { RtlCopyUnicodeString(&MBRFRegistryPath, RegistryPath); } else { MBRFRegistryPath.Length = 0;