From 2da11b7d205656584c3cf902a20a6a3151b5b450 Mon Sep 17 00:00:00 2001 From: gir489 Date: Mon, 5 Feb 2018 16:59:47 -0500 Subject: [PATCH] Fixed GitHub Issue #3 (Test IDA signature on 64-bit doesn't produce clickable addresses) --- SigMaker/Search.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/SigMaker/Search.cpp b/SigMaker/Search.cpp index 83ffc60..443dc94 100644 --- a/SigMaker/Search.cpp +++ b/SigMaker/Search.cpp @@ -55,7 +55,11 @@ void SearchForSigs( const qstring& strSig ) { do { - msg( "sig found at %x\n", dwAddress ); +#ifdef __X64__ + msg("sig found at 1%x\n", dwAddress); +#else + msg("sig found at %x\n", dwAddress); +#endif dwAddress = find_binary( dwAddress + 1, inf.max_ea, strSig.c_str( ), 16, SEARCH_DOWN ); } while (IsValidEA( dwAddress )); } @@ -67,7 +71,11 @@ void SearchForSigs( const qstring& strSig ) { do { - msg( "sig found at %x\n", dwAddress ); +#ifdef __X64__ + msg( "sig found at 1%x\n", dwAddress ); +#else + msg("sig found at %x\n", dwAddress); +#endif dwAddress = find_binary( dwAddress + 1, inf.omax_ea, strSig.c_str( ), 16, SEARCH_DOWN ); } while (IsValidEA( dwAddress )); }