Skip to content

Commit 5463e0f

Browse files
author
Michael Dec
committed
corrected IDA version checks
1 parent d825332 commit 5463e0f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ int8_t CheckIDAVersion(FILE * DifFile)
3333
size_t len = 0;
3434
char * line = NULL;
3535
grepline(&line, &len, DifFile);
36-
if(!strncmp(line,"This difference file has been created by IDA Pro",len-OS_HEXLINE) && 48 == len-OS_HEXLINE)
36+
printf("STATS: %i\n", len-OS_HEXLINE);
37+
if(!strncmp(line,"This difference file has been created by IDA Pro",len-OS_HEXLINE) && 33 == len-OS_HEXLINE)
3738
{
3839
result = 6; /*IDA 6*/
3940
}
4041
else
4142
{
42-
if(!strncmp(line, "This difference file is created by The Interactive Disassembler",len-OS_HEXLINE) && 63 == len-OS_HEXLINE)
43+
if(!strncmp(line, "This difference file is created by The Interactive Disassembler",len-OS_HEXLINE) && 48 == len-OS_HEXLINE)
4344
{
4445
result = 5; /*IDA 5*/
4546
}

0 commit comments

Comments
 (0)