mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: IPS patch applying being broken
This commit is contained in:
@@ -156,7 +156,7 @@ namespace hex {
|
||||
ipsOffset += 1;
|
||||
}
|
||||
|
||||
if (std::memcmp(ipsPatch.data(), "EOF", 3) == 0)
|
||||
if (std::memcmp(ipsPatch.data() + ipsOffset, "EOF", 3) == 0)
|
||||
foundEOF = true;
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ namespace hex {
|
||||
ipsOffset += 1;
|
||||
}
|
||||
|
||||
if (std::memcmp(ipsPatch.data(), "EEOF", 4) == 0)
|
||||
if (std::memcmp(ipsPatch.data() + ipsOffset, "EEOF", 4) == 0)
|
||||
foundEEOF = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user