mirror of https://github.com/WerWolv/ImHex.git
fix: Binary Pattern search being broken with alignments > 1
This commit is contained in:
parent
1b54a8858e
commit
8cd0561e71
|
@ -353,7 +353,7 @@ namespace hex::plugin::builtin {
|
||||||
|
|
||||||
bool match = true;
|
bool match = true;
|
||||||
for (u32 i = 0; i < patternSize; i++) {
|
for (u32 i = 0; i < patternSize; i++) {
|
||||||
if (settings.pattern.matchesByte(data[i], i)) {
|
if (!settings.pattern.matchesByte(data[i], i)) {
|
||||||
match = false;
|
match = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue