DriverLoader: Fix import module name's comparing.

This commit is contained in:
Nodir Temirkhodjaev 2021-11-10 18:07:00 +03:00
parent 4c09292bc3
commit 12115058e4
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}