mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:25:40 +00:00
DriverLoader: Fix import module name's comparing.
This commit is contained in:
parent
4c09292bc3
commit
12115058e4
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user