diff options
Diffstat (limited to 'inject/injectee.cpp')
-rw-r--r-- | inject/injectee.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/inject/injectee.cpp b/inject/injectee.cpp index 5a60c811..81d7af35 100644 --- a/inject/injectee.cpp +++ b/inject/injectee.cpp @@ -658,9 +658,17 @@ patchModule(HMODULE hModule, return; } - /* Leave these modules alone */ + /* Leave these modules alone. + * + * Hooking other injection DLLs easily leads to infinite recursion (and + * stack overflow), especially when those libraries use techniques like + * modifying the hooked functions prolog (instead of patching IAT like we + * do). + */ if (stricmp(szBaseName, "kernel32.dll") == 0 || - stricmp(szBaseName, "ConEmuHk.dll") == 0) { + stricmp(szBaseName, "ConEmuHk.dll") == 0 || + stricmp(szBaseName, "gameoverlayrenderer.dll") == 0 || + stricmp(szBaseName, "gameoverlayrenderer64.dll") == 0) { return; } |