aboutsummaryrefslogtreecommitdiff
path: root/include/PatternScanner.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-09-28 19:43:58 +0200
committerToni Uhlig <matzeton@googlemail.com>2019-09-28 19:43:58 +0200
commitab39d4ee5812fbffd8180e07a6ba8094614dc304 (patch)
treeb71aa76ece42ebc65482ca230ba7ce8b718e44bb /include/PatternScanner.h
parentaf48899954bfd7205f6b0d8d371502cc898a6667 (diff)
pattern scanning works as expected
Diffstat (limited to 'include/PatternScanner.h')
-rw-r--r--include/PatternScanner.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/PatternScanner.h b/include/PatternScanner.h
index aa011f8..d374d29 100644
--- a/include/PatternScanner.h
+++ b/include/PatternScanner.h
@@ -39,10 +39,10 @@ public:
void SetScanAddress(UINT64 startAddress) {
m_LowAddress = startAddress;
}
- bool Scan(MODULE_DATA& module, const char * const pattern);
+ bool Scan(MODULE_DATA& module, const char * const pattern, std::vector<SIZE_T>& foundAddresses);
private:
bool checkPattern(MODULE_DATA& module, const char * const pattern, std::string& result);
- bool doScan(std::string& pattern, UINT8 *buf, SIZE_T size, std::vector<UINT64>& foundOffsets);
+ bool doScan(std::string& pattern, UINT8 *buf, SIZE_T size, std::vector<SIZE_T>& foundAddresses);
SymbolResolver& m_symbolResolver;