From 1377104860460aefee613b92e4eb67d6371a7b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Sat, 1 Jul 2023 05:47:09 +0200 Subject: [PATCH] Altered return of DomitoFindModuleBaseAddress to report success even when optional arg is missing --- src/Domito.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;