aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/exploitfixes_utf8parser.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-08-19 19:29:15 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-08-19 19:29:15 +0100
commit554033c01afc51c283e0997d28573abe7599ef24 (patch)
treed21213f4a553bcd9ce1fde585cb51305feda4c3b /NorthstarDLL/exploitfixes_utf8parser.cpp
parente85a3eee190e623e1d6397b4460817170b7bfced (diff)
downloadNorthstarLauncher-554033c01afc51c283e0997d28573abe7599ef24.tar.gz
NorthstarLauncher-554033c01afc51c283e0997d28573abe7599ef24.zip
improve rpakfilesystem
Diffstat (limited to 'NorthstarDLL/exploitfixes_utf8parser.cpp')
-rw-r--r--NorthstarDLL/exploitfixes_utf8parser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/NorthstarDLL/exploitfixes_utf8parser.cpp b/NorthstarDLL/exploitfixes_utf8parser.cpp
index 1440e2c7..84b7cbc6 100644
--- a/NorthstarDLL/exploitfixes_utf8parser.cpp
+++ b/NorthstarDLL/exploitfixes_utf8parser.cpp
@@ -1,5 +1,4 @@
#include "pch.h"
-#include "NSMem.h"
AUTOHOOK_INIT()
@@ -174,7 +173,7 @@ LABEL_48:
AUTOHOOK(Rson_ParseUTF8, engine.dll + 0xEF670,
bool, __fastcall, (INT64* a1, DWORD* a2, char* strData)) // 48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 41 54 41 55 41 56 41 57 48 83 EC 20 8B 1A
{
- static void* targetRetAddr = NSMem::PatternScan("engine.dll", "84 C0 75 2C 49 8B 16");
+ static void* targetRetAddr = CModule("engine.dll").FindPattern("84 C0 75 2C 49 8B 16");
// only call if we're parsing utf8 data from the network (i.e. communities), otherwise we get perf issues
if (_ReturnAddress() == targetRetAddr && !CheckUTF8Valid(a1, a2, strData))