Skip to content

Commit

Permalink
Fixed EOS Hook
Browse files Browse the repository at this point in the history
  • Loading branch information
HerpDerpinstine committed Aug 21, 2024
1 parent 4febc42 commit 877b65e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dependencies/CompatibilityLayers/EOS/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public override void OnInitialize()
IntPtr loadLibraryWPtr = lib.GetExport("LoadLibraryW");
if (loadLibraryWPtr != IntPtr.Zero)
{
_hookWin = new NativeHook<LoadLibraryDetour>(loadLibraryWPtr,
Marshal.GetFunctionPointerForDelegate(DetourWin));
IntPtr detourPtr = Marshal.GetFunctionPointerForDelegate((LoadLibraryDetour)DetourWin);
_hookWin = new NativeHook<LoadLibraryDetour>(loadLibraryWPtr, detourPtr);
_hookWin.Attach();
}
}
Expand Down

0 comments on commit 877b65e

Please sign in to comment.