diff --git a/lib/libimhex/source/helpers/patches.cpp b/lib/libimhex/source/helpers/patches.cpp index 853dfe596..4323bf453 100644 --- a/lib/libimhex/source/helpers/patches.cpp +++ b/lib/libimhex/source/helpers/patches.cpp @@ -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; }