Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Artikash committed Aug 4, 2018
1 parent 7739c45 commit 959d7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GUI/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ HookParam ParseRCode(QString RCode)
RCode.remove(0, 1);
QRegExp address("[\\dA-F]+$");
if (address.indexIn(RCode) == -1) return {};
hp.address = address.cap(1).toInt(nullptr, 16);
hp.address = address.cap(0).toInt(nullptr, 16);
return hp;
}

Expand Down Expand Up @@ -231,7 +231,7 @@ QString GenerateRCode(HookParam hp)
code += QString::number(hp.offset, 16);
code += "@";
code += QString::number(hp.address, 16);
return code;
return code.toUpper();
}

QString GenerateCode(HookParam hp, DWORD processId)
Expand Down

0 comments on commit 959d7c2

Please sign in to comment.