mirror of
https://github.com/SunsetMkt/Akebi-GC.git
synced 2025-09-19 20:16:01 +08:00
resolving merge with minor changes
This commit is contained in:
@ -45,10 +45,15 @@ bool LoadLibraryDLL(HANDLE hProc, const std::string& dllpath)
|
||||
VirtualFreeEx(hProc, pDLLPath, 0, MEM_RELEASE);
|
||||
return false;
|
||||
}
|
||||
CloseHandle(hThread);
|
||||
|
||||
// TODO: Add waiting for thread end and release unneccessary data.
|
||||
// VirtualFreeEx(hProc, pDLLPath, 0, MEM_RELEASE);
|
||||
// Waiting for thread end and release unnecessary data.
|
||||
if (WaitForSingleObject(hThread, 2000) == WAIT_OBJECT_0)
|
||||
{
|
||||
// ILog("[DLL Injection] Remote thread ended successfully.\n");
|
||||
VirtualFreeEx(hProc, pDLLPath, 0, MEM_RELEASE);
|
||||
}
|
||||
|
||||
CloseHandle(hThread);
|
||||
|
||||
ILog("[DLL Injection] Successfully LoadLibraryA injection.\n");
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user