Skip to content

Commit

Permalink
[DLL] Fix communicating back with launcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
num0005 committed Jul 9, 2024
1 parent 7620160 commit 0a7b8c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions H2ToolHooks/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ BOOL APIENTRY DllMain( HMODULE hModule,
char event_name[0x1000];
if (GetEnvironmentVariableA("OSOYOOS_INJECTOR_EVENT", event_name, sizeof(event_name)))
{
HANDLE event = OpenEventA(WRITE_DAC, FALSE, event_name);
HANDLE event = OpenEventA(EVENT_MODIFY_STATE, FALSE, event_name);
if (event != 0)
{
#if _DEBUG
DebugPrintf("[DLL FIX] Injected successfully!");
#endif
if (!SetEvent(event))
{
DebugPrintf("[DLL FIX] Failed to communicate back to launcher!");
DebugPrintf("[DLL FIX] Failed to communicate back to launcher: %x!", GetLastError());
}
CloseHandle(event);
}
Expand Down

0 comments on commit 0a7b8c9

Please sign in to comment.