mirror of https://github.com/n1nj4sec/pupy.git
windows/memimporter: use MyLoadLibrary during imports
This commit is contained in:
parent
eb4c6590e3
commit
d9c25c786b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue