Update host.cpp

This commit is contained in:
恍兮惚兮 2024-05-06 22:24:06 +08:00
parent 15849bd1a1
commit eb50325e76

View File

@ -291,15 +291,14 @@ namespace Host
}
void InjectProcess(DWORD processId,const std::wstring locationX)
{
CreatePipe(processId);
std::thread([processId,locationX]
{
if(CheckProcess(processId)==false)return;
auto check=CreatePipeAndCheck(processId);
if(check==false)return;
std::thread([=]
{
if(InjectDll(processId,locationX))return ;
AddConsoleOutput(INJECT_FAILED);
}).detach();
}