diff --git a/UnregisterAllLdrRegisterDllNotification.c b/UnregisterAllLdrRegisterDllNotification.c index 82d4991..863cd2e 100644 --- a/UnregisterAllLdrRegisterDllNotification.c +++ b/UnregisterAllLdrRegisterDllNotification.c @@ -165,8 +165,8 @@ VOID RemoveEntryList(LIST_ENTRY* Entry) LIST_ENTRY* removeDllLoadNotifications() { - LIST_ENTRY* dllNotificationList = getDllLoadNotifications(); - if (dllNotificationList) + LIST_ENTRY* dllNotificationList = NULL; + if (dllNotificationList = getDllLoadNotifications()) { LIST_ENTRY* head = dllNotificationList; LIST_ENTRY* next = dllNotificationList->Flink;