From 12115058e4033fa9e9aabd7c616202b203431ea2 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 10 Nov 2021 18:07:00 +0300 Subject: [PATCH] DriverLoader: Fix import module name's comparing. --- src/driver/loader/fortdl.c | 3 +-- src/driver/loader/fortmm.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/driver/loader/fortdl.c b/src/driver/loader/fortdl.c index 8f370072..df788d1e 100644 --- a/src/driver/loader/fortdl.c +++ b/src/driver/loader/fortdl.c @@ -44,8 +44,7 @@ static NTSTATUS fort_loader_init(PWSTR driverPath) { NTSTATUS status; - DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL, "FORT: Loader Init: %ws irql=%d\n", - driverPath, KeGetCurrentIrql()); + DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL, "FORT: Loader Init: %ws\n", driverPath); /* Load the driver file */ PUCHAR data = NULL; diff --git a/src/driver/loader/fortmm.c b/src/driver/loader/fortmm.c index 5da980d2..2a8b5da8 100644 --- a/src/driver/loader/fortmm.c +++ b/src/driver/loader/fortmm.c @@ -28,7 +28,7 @@ static NTSTATUS GetModuleInfo( { PAUX_MODULE_EXTENDED_INFO module = modules; for (DWORD i = 0; i < modulesCount; ++i, ++module) { - if (strcmp(name, &module->FullPathName[module->FileNameOffset]) == 0) { + if (_stricmp(name, &module->FullPathName[module->FileNameOffset]) == 0) { pModule->codeBase = module->BasicInfo.ImageBase; return STATUS_SUCCESS; }