From 959d7c2dd572ea6a782b8f12131579c7f70540b0 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 4 Aug 2018 18:42:06 -0400 Subject: [PATCH] bugfixes --- GUI/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/misc.cpp b/GUI/misc.cpp index d0a063e..6d5093a 100644 --- a/GUI/misc.cpp +++ b/GUI/misc.cpp @@ -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; } @@ -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)