DriverLoader: Fix fort_driver_path() for Win7.

This commit is contained in:
Nodir Temirkhodjaev 2021-11-06 09:45:37 +03:00
parent 37eabb4dde
commit bc9ed49435
2 changed files with 7 additions and 1 deletions

View File

@ -54,7 +54,7 @@ FORT_API NTSTATUS fort_driver_path(PDRIVER_OBJECT driver, PUNICODE_STRING regPat
UNICODE_STRING valueName; UNICODE_STRING valueName;
RtlInitUnicodeString(&valueName, L"ImagePath"); RtlInitUnicodeString(&valueName, L"ImagePath");
status = fortdl_reg_value(regKey, &valueName, outPath); status = fort_reg_value(regKey, &valueName, outPath);
ZwClose(regKey); ZwClose(regKey);
#else #else

View File

@ -21,6 +21,12 @@ void ExFreePoolWithTag(PVOID p, ULONG tag)
HeapFree(GetProcessHeap(), 0, p); HeapFree(GetProcessHeap(), 0, p);
} }
PVOID ExAllocatePool(PVOID flags, SIZE_T size)
{
UNUSED(flags);
return HeapAlloc(GetProcessHeap(), 0, size);
}
void ExFreePool(PVOID p) void ExFreePool(PVOID p)
{ {
UNUSED(p); UNUSED(p);