Altered return of DomitoFindModuleBaseAddress to report success even when optional arg is missing

This commit is contained in:
Benjamin Höglinger-Stelzer 2023-07-01 05:47:09 +02:00
parent b57e5b939a
commit 1377104860

View File

@ -129,10 +129,11 @@ DomitoFindModuleBaseAddress(
if (0 == RtlCompareString(&ModuleName, &currentImageName, TRUE))
{
status = STATUS_SUCCESS;
// Found the module, store the base address
if (ModuleBase)
{
status = STATUS_SUCCESS;
{
*ModuleBase = moduleInfo->Module[i].Base;
}
break;