diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-18 23:41:22 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-18 23:41:22 +0300 |
commit | 79c8ff11ee17dbc4d08523c76cdbb2590097e838 (patch) | |
tree | ee34d89b9f3b00536c2f155c1de04fe3b2169323 | |
parent | 13ce4aa25fa260ed3eddee08a0fca93938b3c6fe (diff) |
code cleaning
-rw-r--r-- | src/mir_app/src/ignore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/ignore.cpp b/src/mir_app/src/ignore.cpp index a0775b48be..10ee55d64e 100644 --- a/src/mir_app/src/ignore.cpp +++ b/src/mir_app/src/ignore.cpp @@ -347,7 +347,7 @@ static INT_PTR IsIgnored(WPARAM wParam, LPARAM lParam) DWORD mask = GetMask(wParam);
if (lParam < 1 || lParam > IGNOREEVENT_MAX)
return 1;
- return (mask >> (lParam - 1)) & 1;
+ return (masks[lParam-1] & mask) != 0;
}
static INT_PTR Ignore(WPARAM wParam, LPARAM lParam)
@@ -358,7 +358,7 @@ static INT_PTR Ignore(WPARAM wParam, LPARAM lParam) if (lParam == IGNOREEVENT_ALL)
mask = 0xFFFF;
else
- mask |= 1 << (masks[lParam-1]);
+ mask |= masks[lParam-1];
SaveItemValue(wParam, "Mask1", mask);
return 0;
}
|