Skip to content

Commit

Permalink
fix for screen hook clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
bobode committed Jan 25, 2014
1 parent fb0f835 commit 178deb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ScreenHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ bool Genhook::Click(int button, POINT* loc)
evt->arg1 = new DWORD((DWORD)button);
evt->arg2 = new DWORD((DWORD)loc->x);
evt->arg3 = new DWORD((DWORD)loc->y);
*(DWORD*) evt->arg4 = block;
evt->arg4 = new DWORD(false);

ResetEvent(Vars.eventSignal);
AutoRoot* root = new AutoRoot(evt->owner->GetContext(), clicked);
evt->functions.push_back(root);
Expand Down

0 comments on commit 178deb3

Please sign in to comment.