fix: add l2.bin to valid process name
This commit is contained in:
parent
2943f7a50b
commit
46c877f036
@ -44,11 +44,13 @@ BOOL APIENTRY DllMain(HMODULE hModule,
|
|||||||
const int processId = GetCurrentProcessId();
|
const int processId = GetCurrentProcessId();
|
||||||
const std::string& processName = InjectLibrary::GetCurrentProcessName();
|
const std::string& processName = InjectLibrary::GetCurrentProcessName();
|
||||||
|
|
||||||
|
const bool isLineageProcess = processName == "l2.exe" || processName == "l2.bin";
|
||||||
|
|
||||||
switch (ul_reason_for_call)
|
switch (ul_reason_for_call)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
injector.SetHook(hModule);
|
injector.SetHook(hModule);
|
||||||
if (processName == "l2.exe") {
|
if (isLineageProcess) {
|
||||||
ConfigLogger(hModule);
|
ConfigLogger(hModule);
|
||||||
|
|
||||||
InjectLibrary::StopCurrentProcess();
|
InjectLibrary::StopCurrentProcess();
|
||||||
@ -58,7 +60,7 @@ BOOL APIENTRY DllMain(HMODULE hModule,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
if (processName == "l2.exe") {
|
if (isLineageProcess) {
|
||||||
InjectLibrary::StopCurrentProcess();
|
InjectLibrary::StopCurrentProcess();
|
||||||
application.Stop();
|
application.Stop();
|
||||||
InjectLibrary::StartCurrentProcess();
|
InjectLibrary::StartCurrentProcess();
|
||||||
|
Loading…
Reference in New Issue
Block a user