Skip to content

Commit

Permalink
Revert "Remove redundant logging, thanks @mhaeuser"
Browse files Browse the repository at this point in the history
This reverts commit e03f930.
  • Loading branch information
PMheart committed Jul 10, 2023
1 parent 9d577fd commit 29e991a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Lilu/Sources/kern_patcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,10 @@ bool KernelPatcher::findPattern(const void *pattern, const void *patternMask, si
}

bool KernelPatcher::findAndReplaceWithMask(void *data, size_t dataSize, const void *find, size_t findSize, const void *findMask, size_t findMaskSize, const void *replace, size_t replaceSize, const void *replaceMask, size_t replaceMaskSize, size_t count, size_t skip) {
if (dataSize < findSize) return false;

if (dataSize < findSize) {
SYSLOG("patcher", "data size must not exceed find size!");
return false;
}
if (findSize < replaceSize) {
SYSLOG("patcher", "find size must be larger or equivalent to repl size!");
return false;
Expand Down

0 comments on commit 29e991a

Please sign in to comment.