diff --git a/client/sources/MyLoadLibrary.c b/client/sources/MyLoadLibrary.c index fb221304..3485b64f 100644 --- a/client/sources/MyLoadLibrary.c +++ b/client/sources/MyLoadLibrary.c @@ -211,6 +211,10 @@ HMODULE MyGetModuleHandle(LPCSTR name) HMODULE MyLoadLibrary(LPCSTR name, void *bytes, void *dllmainArg) { + HMODULE hLoadedModule = MyGetModuleHandle(name); + if (hLoadedModule) + return hLoadedModule; + if (bytes) { HCUSTOMMODULE mod = MemoryLoadLibraryEx(bytes, _LoadLibrary,