Various fixes

This commit is contained in:
Nick Cano
2016-04-20 14:15:23 -07:00
parent 078d92c45e
commit 50152ef2c9
4 changed files with 29 additions and 14 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ ExecutableModule::~ExecutableModule(void)
DWORD ExecutableModule::findPattern(const char* pattern, unsigned int patternLength, unsigned int occurance)
{
unsigned int ocur = 0;
for (DWORD adr = this->base; adr < this->base + this->size - patternLength; adr++)
for (DWORD adr = this->base; adr <= this->base + this->size - patternLength; adr++)
{
if (memcmp((LPVOID)pattern, (LPVOID)adr, patternLength) == 0)