diff --git a/injector/source/patcher.c b/injector/source/patcher.c index b38b558..e1af719 100644 --- a/injector/source/patcher.c +++ b/injector/source/patcher.c @@ -15,7 +15,7 @@ static u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSiz const u8 *patternc = (const u8 *)pattern; //Preprocessing - int table[256]; + u32 table[256]; for(u32 i = 0; i < 256; ++i) table[i] = patternSize + 1; diff --git a/source/memory.c b/source/memory.c index 07791e9..05d4cdc 100644 --- a/source/memory.c +++ b/source/memory.c @@ -41,7 +41,7 @@ u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize){ const u8 *patternc = (const u8 *)pattern; //Preprocessing - int table[256]; + u32 table[256]; for(u32 i = 0; i < 256; ++i) table[i] = patternSize + 1;