To be able to specify the patch version

This commit is contained in:
esuo1198
2023-10-24 14:46:54 +09:00
parent 155ea338b8
commit f395c8404c
8 changed files with 113 additions and 118 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ CoCreateInstanceHook (const IID *const rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsC
void
Init () {
MH_Initialize ();
MH_CreateHookApi (L"ole32.dll", "CoCreateInstance", reinterpret_cast<LPVOID> (CoCreateInstanceHook), reinterpret_cast<void **> (&gOriCoCreateInstance)); // NOLINT(clang-diagnostic-microsoft-cast)
MH_CreateHookApi (L"ole32.dll", "CoCreateInstance", (LPVOID)CoCreateInstanceHook, (void **)&gOriCoCreateInstance);
MH_EnableHook (nullptr);
}
} // namespace patches::AmAuth