diff --git a/src/Domito.cpp b/src/Domito.cpp index 24abfc9..bb9e8de 100644 --- a/src/Domito.cpp +++ b/src/Domito.cpp @@ -129,10 +129,11 @@ DomitoFindModuleBaseAddress( if (0 == RtlCompareString(&ModuleName, ¤tImageName, TRUE)) { + status = STATUS_SUCCESS; + // Found the module, store the base address if (ModuleBase) - { - status = STATUS_SUCCESS; + { *ModuleBase = moduleInfo->Module[i].Base; } break;